]> git.basschouten.com Git - openhab-addons.git/blob
dc1191c97cef31eb830ec3ea9acc078687b911d0
[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.sleepiq.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * The {@link SleepIQBinding} class defines common constants, which are
20  * used across the whole binding.
21  *
22  * @author Gregory Moyer - Initial contribution
23  */
24 @NonNullByDefault
25 public class SleepIQBindingConstants {
26     public static final String BINDING_ID = "sleepiq";
27
28     // List of all Thing Type UIDs
29
30     // bridge
31     public static final ThingTypeUID THING_TYPE_CLOUD = new ThingTypeUID(BINDING_ID, "cloud");
32
33     // generic thing types
34     public static final ThingTypeUID THING_TYPE_DUAL_BED = new ThingTypeUID(BINDING_ID, "dualBed");
35
36     // List of all Channel ids
37     public static final String CHANNEL_LEFT_IN_BED = "left#inBed";
38     public static final String CHANNEL_RIGHT_IN_BED = "right#inBed";
39
40     public static final String CHANNEL_LEFT_SLEEP_NUMBER = "left#sleepNumber";
41     public static final String CHANNEL_RIGHT_SLEEP_NUMBER = "right#sleepNumber";
42
43     public static final String CHANNEL_LEFT_PRESSURE = "left#pressure";
44     public static final String CHANNEL_RIGHT_PRESSURE = "right#pressure";
45
46     public static final String CHANNEL_LEFT_LAST_LINK = "left#lastLink";
47     public static final String CHANNEL_RIGHT_LAST_LINK = "right#lastLink";
48
49     public static final String CHANNEL_LEFT_ALERT_ID = "left#alertId";
50     public static final String CHANNEL_RIGHT_ALERT_ID = "right#alertId";
51
52     public static final String CHANNEL_LEFT_ALERT_DETAILED_MESSAGE = "left#alertDetailedMessage";
53     public static final String CHANNEL_RIGHT_ALERT_DETAILED_MESSAGE = "right#alertDetailedMessage";
54
55     public static final String CHANNEL_LEFT_FIRST_NAME = "left#firstName";
56     public static final String CHANNEL_RIGHT_FIRST_NAME = "right#firstName";
57
58     public static final String CHANNEL_LEFT_SLEEP_GOAL_MINUTES = "left#sleepGoalMinutes";
59     public static final String CHANNEL_RIGHT_SLEEP_GOAL_MINUTES = "right#sleepGoalMinutes";
60
61     public static final String CHANNEL_LEFT_PRIVACY_MODE = "left#privacyMode";
62     public static final String CHANNEL_RIGHT_PRIVACY_MODE = "right#privacyMode";
63
64     public static final String CHANNEL_LEFT_TODAY_SLEEP_IQ = "left#todaySleepIQ";
65     public static final String CHANNEL_RIGHT_TODAY_SLEEP_IQ = "right#todaySleepIQ";
66
67     public static final String CHANNEL_LEFT_TODAY_AVG_HEART_RATE = "left#todayAverageHeartRate";
68     public static final String CHANNEL_RIGHT_TODAY_AVG_HEART_RATE = "right#todayAverageHeartRate";
69
70     public static final String CHANNEL_LEFT_TODAY_AVG_RESPIRATION_RATE = "left#todayAverageRespirationRate";
71     public static final String CHANNEL_RIGHT_TODAY_AVG_RESPIRATION_RATE = "right#todayAverageRespirationRate";
72
73     public static final String CHANNEL_LEFT_TODAY_MESSAGE = "left#todayMessage";
74     public static final String CHANNEL_RIGHT_TODAY_MESSAGE = "right#todayMessage";
75
76     public static final String CHANNEL_LEFT_TODAY_SLEEP_DURATION_SECONDS = "left#todaySleepDurationSeconds";
77     public static final String CHANNEL_RIGHT_TODAY_SLEEP_DURATION_SECONDS = "right#todaySleepDurationSeconds";
78
79     public static final String CHANNEL_LEFT_TODAY_SLEEP_IN_BED_SECONDS = "left#todaySleepInBedSeconds";
80     public static final String CHANNEL_RIGHT_TODAY_SLEEP_IN_BED_SECONDS = "right#todaySleepInBedSeconds";
81
82     public static final String CHANNEL_LEFT_TODAY_SLEEP_OUT_OF_BED_SECONDS = "left#todaySleepOutOfBedSeconds";
83     public static final String CHANNEL_RIGHT_TODAY_SLEEP_OUT_OF_BED_SECONDS = "right#todaySleepOutOfBedSeconds";
84
85     public static final String CHANNEL_LEFT_TODAY_SLEEP_RESTFUL_SECONDS = "left#todaySleepRestfulSeconds";
86     public static final String CHANNEL_RIGHT_TODAY_SLEEP_RESTFUL_SECONDS = "right#todaySleepRestfulSeconds";
87
88     public static final String CHANNEL_LEFT_TODAY_SLEEP_RESTLESS_SECONDS = "left#todaySleepRestlessSeconds";
89     public static final String CHANNEL_RIGHT_TODAY_SLEEP_RESTLESS_SECONDS = "right#todaySleepRestlessSeconds";
90
91     public static final String CHANNEL_LEFT_MONTHLY_SLEEP_IQ = "left#monthlySleepIQ";
92     public static final String CHANNEL_RIGHT_MONTHLY_SLEEP_IQ = "right#monthlySleepIQ";
93
94     public static final String CHANNEL_LEFT_MONTHLY_AVG_HEART_RATE = "left#monthlyAverageHeartRate";
95     public static final String CHANNEL_RIGHT_MONTHLY_AVG_HEART_RATE = "right#monthlyAverageHeartRate";
96
97     public static final String CHANNEL_LEFT_MONTHLY_AVG_RESPIRATION_RATE = "left#monthlyAverageRespirationRate";
98     public static final String CHANNEL_RIGHT_MONTHLY_AVG_RESPIRATION_RATE = "right#monthlyAverageRespirationRate";
99
100     // List of non-standard Properties
101     public static final String PROPERTY_BASE = "base";
102     public static final String PROPERTY_KIDS_BED = "kidsBed";
103     public static final String PROPERTY_MAC_ADDRESS = "macAddress";
104     public static final String PROPERTY_NAME = "name";
105     public static final String PROPERTY_PURCHASE_DATE = "purchaseDate";
106     public static final String PROPERTY_SIZE = "size";
107     public static final String PROPERTY_SKU = "sku";
108 }