]> git.basschouten.com Git - openhab-addons.git/blob
6ef77bcd437d3b9c3171dfe1c76df5b227e03e75
[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.sinope;
14
15 import java.util.HashSet;
16 import java.util.Set;
17
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.openhab.core.thing.ThingTypeUID;
20
21 /**
22  * The {@link sinopeBinding} class defines common constants, which are
23  * used across the whole binding.
24  *
25  * @author Pascal Larin - Initial contribution
26  */
27 @NonNullByDefault
28 public class SinopeBindingConstants {
29
30     public static final String BINDING_ID = "sinope";
31
32     // List of all Thing Type UIDs
33     public static final ThingTypeUID THING_TYPE_THERMO = new ThingTypeUID(BINDING_ID, "thermostat");
34     public static final ThingTypeUID THING_TYPE_GATEWAY = new ThingTypeUID(BINDING_ID, "gateway");
35
36     // List of all Channel ids
37     public static final String CHANNEL_HEATINGLEVEL = "heatingLevel";
38     public static final String CHANNEL_SETTEMP = "setpointTemperature";
39     public static final String CHANNEL_SETMODE = "setpointMode";
40     public static final String CHANNEL_INTEMP = "insideTemperature";
41     public static final String CHANNEL_OUTTEMP = "outsideTemperature";
42
43     public static final String CONFIG_PROPERTY_HOST = "ipAddress";
44     public static final String CONFIG_PROPERTY_PORT = "ipPort";
45     public static final String CONFIG_PROPERTY_GATEWAY_ID = "gatewayID";
46     public static final String CONFIG_PROPERTY_API_KEY = "apiKey";
47     public static final String CONFIG_PROPERTY_POLLING_INTERVAL = "pollingInterval";
48     public static final String CONFIG_PROPERTY_DEVICE_ID = "deviceId";
49
50     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = new HashSet<>();
51
52     static {
53         SUPPORTED_THING_TYPES_UIDS.add(THING_TYPE_GATEWAY);
54         SUPPORTED_THING_TYPES_UIDS.add(THING_TYPE_THERMO);
55     }
56 }