]> git.basschouten.com Git - openhab-addons.git/blob
027e519de11d957daa5e4932081785adbf2972fa
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 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.broadlinkthermostat.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * The {@link BroadlinkThermostatBindingConstants} class defines common constants, which are
20  * used across the whole binding.
21  *
22  * @author Florian Mueller - Initial contribution
23  */
24 @NonNullByDefault
25 public class BroadlinkThermostatBindingConstants {
26
27     private static final String BINDING_ID = "broadlinkthermostat";
28
29     // List of all Thing Type UIDs
30     public static final ThingTypeUID FLOUREON_THERMOSTAT_THING_TYPE = new ThingTypeUID(BINDING_ID,
31             "floureonthermostat");
32     public static final ThingTypeUID HYSEN_THERMOSTAT_THING_TYPE = new ThingTypeUID(BINDING_ID, "hysenthermostat");
33     public static final ThingTypeUID UNKNOWN_BROADLINKTHERMOSTAT_THING_TYPE = new ThingTypeUID(BINDING_ID,
34             "unknownbroadlinkthermostatdevice");
35
36     // List of all Channel ids
37     public static final String ROOM_TEMPERATURE = "roomtemperature";
38     public static final String ROOM_TEMPERATURE_EXTERNAL_SENSOR = "roomtemperatureexternalsensor";
39     public static final String SETPOINT = "setpoint";
40     public static final String POWER = "power";
41     public static final String MODE = "mode";
42     public static final String SENSOR = "sensor";
43     public static final String TEMPERATURE_OFFSET = "temperatureoffset";
44     public static final String ACTIVE = "active";
45     public static final String REMOTE_LOCK = "remotelock";
46     public static final String TIME = "time";
47
48     // Config properties
49     public static final String HOST = "host";
50     public static final String DESCRIPTION = "description";
51
52     public static final String MODE_AUTO = "auto";
53     public static final String SENSOR_INTERNAL = "internal";
54     public static final String SENSOR_EXTERNAL = "external";
55 }