]> git.basschouten.com Git - openhab-addons.git/blob
d416730cd5d4ef8fc637967704bc7d1c5bccf57e
[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.eclipse.jdt.annotation.NonNullByDefault;
21 import org.openhab.core.thing.ThingTypeUID;
22
23 /**
24  * The {@link EvohomeBindingConstants} class defines common constants, which are
25  * used across the whole binding.
26  *
27  * @author Jasper van Zuijlen - Initial contribution
28  * @author Neil Renaud - Heating Zones
29  */
30 @NonNullByDefault
31 public class EvohomeBindingConstants {
32
33     private static final String BINDING_ID = "evohome";
34
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");
39
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";
45
46     // List of Discovery properties
47     public static final String PROPERTY_ID = "id";
48     public static final String PROPERTY_NAME = "name";
49
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()));
54 }