]> git.basschouten.com Git - openhab-addons.git/blob
f5eb4642a87e1f9c880a669f7526e2eae17f3cf4
[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_SINGLE_BED = new ThingTypeUID(BINDING_ID, "singleBed");
35     public static final ThingTypeUID THING_TYPE_DUAL_BED = new ThingTypeUID(BINDING_ID, "dualBed");
36
37     // List of all Channel ids
38     // public static final String CHANNEL_BED_IN_BED = "bed#inBed";
39     public static final String CHANNEL_LEFT_IN_BED = "left#inBed";
40     public static final String CHANNEL_RIGHT_IN_BED = "right#inBed";
41
42     // public static final String CHANNEL_BED_SLEEP_NUMBER = "bed#sleepNumber";
43     public static final String CHANNEL_LEFT_SLEEP_NUMBER = "left#sleepNumber";
44     public static final String CHANNEL_RIGHT_SLEEP_NUMBER = "right#sleepNumber";
45
46     // public static final String CHANNEL_BED_PRESSURE = "bed#pressure";
47     public static final String CHANNEL_LEFT_PRESSURE = "left#pressure";
48     public static final String CHANNEL_RIGHT_PRESSURE = "right#pressure";
49
50     // public static final String CHANNEL_BED_LAST_LINK = "bed#lastLink";
51     public static final String CHANNEL_LEFT_LAST_LINK = "left#lastLink";
52     public static final String CHANNEL_RIGHT_LAST_LINK = "right#lastLink";
53
54     // public static final String CHANNEL_BED_ALERT_ID = "bed#alertId";
55     public static final String CHANNEL_LEFT_ALERT_ID = "left#alertId";
56     public static final String CHANNEL_RIGHT_ALERT_ID = "right#alertId";
57
58     // public static final String CHANNEL_BED_ALERT_DETAILED_MESSAGE = "bed#alertDetailedMessage";
59     public static final String CHANNEL_LEFT_ALERT_DETAILED_MESSAGE = "left#alertDetailedMessage";
60     public static final String CHANNEL_RIGHT_ALERT_DETAILED_MESSAGE = "right#alertDetailedMessage";
61
62     // List of non-standard Properties
63     public static final String PROPERTY_BASE = "base";
64     public static final String PROPERTY_KIDS_BED = "kidsBed";
65     public static final String PROPERTY_MAC_ADDRESS = "macAddress";
66     public static final String PROPERTY_NAME = "name";
67     public static final String PROPERTY_PURCHASE_DATE = "purchaseDate";
68     public static final String PROPERTY_SIZE = "size";
69     public static final String PROPERTY_SKU = "sku";
70
71     private SleepIQBindingConstants() {
72         // utility class
73     }
74 }