]> git.basschouten.com Git - openhab-addons.git/blob
2c07a7773721ab6ef29d7e69cc888ee09ace0c34
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.evohome.internal;
14
15 import java.util.Collections;
16 import java.util.Set;
17 import java.util.stream.Collectors;
18 import java.util.stream.Stream;
19
20 import org.openhab.core.thing.ThingTypeUID;
21
22 /**
23  * The {@link EvohomeBindingConstants} class defines common constants, which are
24  * used across the whole binding.
25  *
26  * @author Jasper van Zuijlen - Initial contribution
27  * @author Neil Renaud - Heating Zones
28  */
29 public class EvohomeBindingConstants {
30
31     private static final String BINDING_ID = "evohome";
32
33     // List of all Thing Type UIDs
34     public static final ThingTypeUID THING_TYPE_EVOHOME_ACCOUNT = new ThingTypeUID(BINDING_ID, "account");
35     public static final ThingTypeUID THING_TYPE_EVOHOME_DISPLAY = new ThingTypeUID(BINDING_ID, "display");
36     public static final ThingTypeUID THING_TYPE_EVOHOME_HEATING_ZONE = new ThingTypeUID(BINDING_ID, "heatingzone");
37
38     // List of all Channel IDs
39     public static final String DISPLAY_SYSTEM_MODE_CHANNEL = "SystemMode";
40     public static final String ZONE_TEMPERATURE_CHANNEL = "Temperature";
41     public static final String ZONE_SET_POINT_STATUS_CHANNEL = "SetPointStatus";
42     public static final String ZONE_SET_POINT_CHANNEL = "SetPoint";
43
44     // List of Discovery properties
45     public static final String PROPERTY_ID = "id";
46     public static final String PROPERTY_NAME = "name";
47
48     // List of all addressable things in OH = SUPPORTED_DEVICE_THING_TYPES_UIDS + the virtual bridge
49     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Collections.unmodifiableSet(
50             Stream.of(THING_TYPE_EVOHOME_ACCOUNT, THING_TYPE_EVOHOME_DISPLAY, THING_TYPE_EVOHOME_HEATING_ZONE)
51                     .collect(Collectors.toSet()));
52 }