]> git.basschouten.com Git - openhab-addons.git/blob
b92792b95bd150772be8740b9398a79195415d9a
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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.tado.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * The {@link TadoBindingConstants} class defines common constants, which are
20  * used across the whole binding.
21  *
22  * @author Dennis Frommknecht - Initial contribution
23  * @author Andrew Fiddian-Green - Added Low Battery Alarm, A/C Power and Open Window channels
24  *
25  */
26 @NonNullByDefault
27 public class TadoBindingConstants {
28
29     public static final String BINDING_ID = "tado";
30
31     // List of all Thing Type UIDs
32     public static final ThingTypeUID THING_TYPE_HOME = new ThingTypeUID(BINDING_ID, "home");
33     public static final ThingTypeUID THING_TYPE_ZONE = new ThingTypeUID(BINDING_ID, "zone");
34     public static final ThingTypeUID THING_TYPE_MOBILE_DEVICE = new ThingTypeUID(BINDING_ID, "mobiledevice");
35
36     // List of all Channel IDs
37     public static final String PROPERTY_HOME_TEMPERATURE_UNIT = "temperatureUnit";
38
39     public enum TemperatureUnit {
40         CELSIUS,
41         FAHRENHEIT
42     }
43
44     public static final String CHANNEL_HOME_PRESENCE_MODE = "homePresence";
45
46     public static final String CHANNEL_ZONE_CURRENT_TEMPERATURE = "currentTemperature";
47     public static final String CHANNEL_ZONE_HUMIDITY = "humidity";
48
49     public static final String CHANNEL_ZONE_HEATING_POWER = "heatingPower";
50     // air conditioning power
51     public static final String CHANNEL_ZONE_AC_POWER = "acPower";
52
53     public static final String CHANNEL_ZONE_HVAC_MODE = "hvacMode";
54
55     public enum HvacMode {
56         OFF,
57         HEAT,
58         COOL,
59         DRY,
60         FAN,
61         AUTO
62     }
63
64     public static final String CHANNEL_ZONE_TARGET_TEMPERATURE = "targetTemperature";
65
66     public static final String CHANNEL_ZONE_SWING = "swing";
67
68     public static final String CHANNEL_ZONE_LIGHT = "light";
69
70     public static final String CHANNEL_ZONE_FAN_SPEED = "fanspeed";
71
72     public enum FanSpeed {
73         LOW,
74         MIDDLE,
75         HIGH,
76         AUTO
77     }
78
79     public static final String CHANNEL_ZONE_FAN_LEVEL = "fanLevel";
80
81     public enum FanLevel {
82         SILENT,
83         LEVEL1,
84         LEVEL2,
85         LEVEL3,
86         LEVEL4,
87         LEVEL5,
88         AUTO
89     }
90
91     public static final String CHANNEL_ZONE_HORIZONTAL_SWING = "horizontalSwing";
92
93     public enum HorizontalSwing {
94         OFF,
95         ON,
96         LEFT,
97         MID_LEFT,
98         MID,
99         MID_RIGHT,
100         RIGHT,
101         AUTO
102     }
103
104     public static final String CHANNEL_ZONE_VERTICAL_SWING = "verticalSwing";
105
106     public enum VerticalSwing {
107         OFF,
108         ON,
109         UP,
110         MID_UP,
111         MID,
112         MID_DOWN,
113         DOWN,
114         AUTO
115     }
116
117     public static final String CHANNEL_ZONE_OPERATION_MODE = "operationMode";
118
119     public enum OperationMode {
120         SCHEDULE,
121         TIMER,
122         MANUAL,
123         UNTIL_CHANGE
124     }
125
126     public static final String CHANNEL_ZONE_TIMER_DURATION = "timerDuration";
127     public static final String CHANNEL_ZONE_OVERLAY_EXPIRY = "overlayExpiry";
128
129     // battery low alarm channel
130     public static final String CHANNEL_ZONE_BATTERY_LOW_ALARM = "batteryLowAlarm";
131     // open window detected channel
132     public static final String CHANNEL_ZONE_OPEN_WINDOW_DETECTED = "openWindowDetected";
133
134     public static final String CHANNEL_MOBILE_DEVICE_AT_HOME = "atHome";
135
136     // Configuration
137     public static final String CONFIG_ZONE_ID = "id";
138     public static final String CONFIG_MOBILE_DEVICE_ID = "id";
139
140     // Properties
141     public static final String PROPERTY_ZONE_NAME = "name";
142     public static final String PROPERTY_ZONE_TYPE = "type";
143
144     public enum ZoneType {
145         HEATING,
146         AIR_CONDITIONING,
147         HOT_WATER
148     }
149
150     public static final String PROPERTY_MOBILE_DEVICE_NAME = "name";
151 }