2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.sleepiq.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
19 * The {@link SleepIQBinding} class defines common constants, which are
20 * used across the whole binding.
22 * @author Gregory Moyer - Initial contribution
25 public class SleepIQBindingConstants {
26 public static final String BINDING_ID = "sleepiq";
28 // List of all Thing Type UIDs
31 public static final ThingTypeUID THING_TYPE_CLOUD = new ThingTypeUID(BINDING_ID, "cloud");
33 // generic thing types
34 public static final ThingTypeUID THING_TYPE_DUAL_BED = new ThingTypeUID(BINDING_ID, "dualBed");
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";
40 public static final String CHANNEL_LEFT_SLEEP_NUMBER = "left#sleepNumber";
41 public static final String CHANNEL_RIGHT_SLEEP_NUMBER = "right#sleepNumber";
43 public static final String CHANNEL_LEFT_PRESSURE = "left#pressure";
44 public static final String CHANNEL_RIGHT_PRESSURE = "right#pressure";
46 public static final String CHANNEL_LEFT_LAST_LINK = "left#lastLink";
47 public static final String CHANNEL_RIGHT_LAST_LINK = "right#lastLink";
49 public static final String CHANNEL_LEFT_ALERT_ID = "left#alertId";
50 public static final String CHANNEL_RIGHT_ALERT_ID = "right#alertId";
52 public static final String CHANNEL_LEFT_ALERT_DETAILED_MESSAGE = "left#alertDetailedMessage";
53 public static final String CHANNEL_RIGHT_ALERT_DETAILED_MESSAGE = "right#alertDetailedMessage";
55 public static final String CHANNEL_LEFT_FIRST_NAME = "left#firstName";
56 public static final String CHANNEL_RIGHT_FIRST_NAME = "right#firstName";
58 public static final String CHANNEL_LEFT_SLEEP_GOAL_MINUTES = "left#sleepGoalMinutes";
59 public static final String CHANNEL_RIGHT_SLEEP_GOAL_MINUTES = "right#sleepGoalMinutes";
61 public static final String CHANNEL_LEFT_PRIVACY_MODE = "left#privacyMode";
62 public static final String CHANNEL_RIGHT_PRIVACY_MODE = "right#privacyMode";
64 public static final String CHANNEL_LEFT_TODAY_SLEEP_IQ = "left#todaySleepIQ";
65 public static final String CHANNEL_RIGHT_TODAY_SLEEP_IQ = "right#todaySleepIQ";
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";
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";
73 public static final String CHANNEL_LEFT_TODAY_MESSAGE = "left#todayMessage";
74 public static final String CHANNEL_RIGHT_TODAY_MESSAGE = "right#todayMessage";
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";
79 public static final String CHANNEL_LEFT_MONTHLY_SLEEP_IQ = "left#monthlySleepIQ";
80 public static final String CHANNEL_RIGHT_MONTHLY_SLEEP_IQ = "right#monthlySleepIQ";
82 public static final String CHANNEL_LEFT_MONTHLY_AVG_HEART_RATE = "left#monthlyAverageHeartRate";
83 public static final String CHANNEL_RIGHT_MONTHLY_AVG_HEART_RATE = "right#monthlyAverageHeartRate";
85 public static final String CHANNEL_LEFT_MONTHLY_AVG_RESPIRATION_RATE = "left#monthlyAverageRespirationRate";
86 public static final String CHANNEL_RIGHT_MONTHLY_AVG_RESPIRATION_RATE = "right#monthlyAverageRespirationRate";
88 // List of non-standard Properties
89 public static final String PROPERTY_BASE = "base";
90 public static final String PROPERTY_KIDS_BED = "kidsBed";
91 public static final String PROPERTY_MAC_ADDRESS = "macAddress";
92 public static final String PROPERTY_NAME = "name";
93 public static final String PROPERTY_PURCHASE_DATE = "purchaseDate";
94 public static final String PROPERTY_SIZE = "size";
95 public static final String PROPERTY_SKU = "sku";