]> git.basschouten.com Git - openhab-addons.git/blob
87378b210b99069a86f65ae3959eed7c6ae1afce
[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.venstarthermostat.internal;
14
15 import java.util.Collections;
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 VenstarThermostatBinding} class defines common constants, which are
23  * used across the whole binding.
24  *
25  * @author William Welliver - Initial contribution
26  * @author Matthew Davies - added awayMode and awayModeRaw to include thermostat away mode in binding
27  */
28 @NonNullByDefault
29 public class VenstarThermostatBindingConstants {
30
31     public static final String BINDING_ID = "venstarthermostat";
32
33     // List of all Thing Type UIDs
34     public static final ThingTypeUID THING_TYPE_COLOR_TOUCH = new ThingTypeUID(BINDING_ID, "colorTouchThermostat");
35
36     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES = Collections.singleton(THING_TYPE_COLOR_TOUCH);
37     // List of all Channel ids
38     public static final String CHANNEL_TEMPERATURE = "temperature";
39     public static final String CHANNEL_HUMIDITY = "humidity";
40     public static final String CHANNEL_EXTERNAL_TEMPERATURE = "outdoorTemperature";
41
42     public static final String CHANNEL_HEATING_SETPOINT = "heatingSetpoint";
43     public static final String CHANNEL_COOLING_SETPOINT = "coolingSetpoint";
44     public static final String CHANNEL_SYSTEM_STATE = "systemState";
45     public static final String CHANNEL_SYSTEM_MODE = "systemMode";
46     public static final String CHANNEL_SYSTEM_STATE_RAW = "systemStateRaw";
47     public static final String CHANNEL_SYSTEM_MODE_RAW = "systemModeRaw";
48     public static final String CHANNEL_AWAY_MODE = "awayMode";
49     public static final String CHANNEL_AWAY_MODE_RAW = "awayModeRaw";
50
51     public static final String CONFIG_USERNAME = "username";
52     public static final String CONFIG_PASSWORD = "password";
53     public static final String CONFIG_REFRESH = "refresh";
54
55     public static final String PROPERTY_URL = "url";
56     public static final String PROPERTY_UUID = "uuid";
57
58     public static final String REFRESH_INVALID = "refresh-invalid";
59     public static final String EMPTY_INVALID = "empty-invalid";
60 }