2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.evohome.internal;
15 import java.util.Collections;
17 import java.util.stream.Collectors;
18 import java.util.stream.Stream;
20 import org.eclipse.jdt.annotation.NonNullByDefault;
21 import org.openhab.core.thing.ThingTypeUID;
24 * The {@link EvohomeBindingConstants} class defines common constants, which are
25 * used across the whole binding.
27 * @author Jasper van Zuijlen - Initial contribution
28 * @author Neil Renaud - Heating Zones
31 public class EvohomeBindingConstants {
33 private static final String BINDING_ID = "evohome";
35 // List of all Thing Type UIDs
36 public static final ThingTypeUID THING_TYPE_EVOHOME_ACCOUNT = new ThingTypeUID(BINDING_ID, "account");
37 public static final ThingTypeUID THING_TYPE_EVOHOME_DISPLAY = new ThingTypeUID(BINDING_ID, "display");
38 public static final ThingTypeUID THING_TYPE_EVOHOME_HEATING_ZONE = new ThingTypeUID(BINDING_ID, "heatingzone");
40 // List of all Channel IDs
41 public static final String DISPLAY_SYSTEM_MODE_CHANNEL = "SystemMode";
42 public static final String ZONE_TEMPERATURE_CHANNEL = "Temperature";
43 public static final String ZONE_SET_POINT_STATUS_CHANNEL = "SetPointStatus";
44 public static final String ZONE_SET_POINT_CHANNEL = "SetPoint";
46 // List of Discovery properties
47 public static final String PROPERTY_ID = "id";
48 public static final String PROPERTY_NAME = "name";
50 // List of all addressable things in OH = SUPPORTED_DEVICE_THING_TYPES_UIDS + the virtual bridge
51 public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Collections.unmodifiableSet(
52 Stream.of(THING_TYPE_EVOHOME_ACCOUNT, THING_TYPE_EVOHOME_DISPLAY, THING_TYPE_EVOHOME_HEATING_ZONE)
53 .collect(Collectors.toSet()));