]> git.basschouten.com Git - openhab-addons.git/blob
017d9f87e893a09a9870e0a439996c068374d6f9
[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.lametrictime.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * The {@link LaMetricTimeBindingConstants} 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 LaMetricTimeBindingConstants {
26
27     public static final String BINDING_ID = "lametrictime";
28
29     // Bridge (device) thing
30     public static final ThingTypeUID THING_TYPE_DEVICE = new ThingTypeUID(BINDING_ID, "device");
31
32     // App things
33     public static final ThingTypeUID THING_TYPE_CLOCK_APP = new ThingTypeUID(BINDING_ID, "clockApp");
34     public static final ThingTypeUID THING_TYPE_COUNTDOWN_APP = new ThingTypeUID(BINDING_ID, "countdownApp");
35     public static final ThingTypeUID THING_TYPE_RADIO_APP = new ThingTypeUID(BINDING_ID, "radioApp");
36     public static final ThingTypeUID THING_TYPE_STOPWATCH_APP = new ThingTypeUID(BINDING_ID, "stopwatchApp");
37     public static final ThingTypeUID THING_TYPE_WEATHER_APP = new ThingTypeUID(BINDING_ID, "weatherApp");
38
39     // List of all Channel ids
40     public static final String CHANNEL_NOTIFICATIONS_INFO = "info";
41     public static final String CHANNEL_NOTIFICATIONS_WARN = "warning";
42     public static final String CHANNEL_NOTIFICATIONS_ALERT = "alert";
43
44     public static final String CHANNEL_DISPLAY_BRIGHTNESS = "brightness";
45     public static final String CHANNEL_DISPLAY_BRIGHTNESS_MODE = "brightnessMode";
46     public static final String CHANNEL_AUDIO_VOLUME = "volume";
47     public static final String CHANNEL_BLUETOOTH_ACTIVE = "bluetooth";
48     public static final String CHANNEL_APP = "app";
49
50     public static final String CHANNEL_APP_COMMAND = "command";
51     public static final String CHANNEL_APP_SET_ALARM = "setAlarm";
52     public static final String CHANNEL_APP_DURATION = "duration";
53     public static final String CHANNEL_APP_CONTROL = "control";
54
55     // List of non-standard Properties
56     public static final String PROPERTY_ID = "id";
57     public static final String PROPERTY_NAME = "name";
58     public static final String PROPERTY_BT_DISCOVERABLE = "bluetoothDiscoverable";
59     public static final String PROPERTY_BT_AVAILABLE = "bluetoothAvailable";
60     public static final String PROPERTY_BT_PAIRABLE = "bluetoothPairable";
61     public static final String PROPERTY_BT_MAC = "bluetoothMAC";
62     public static final String PROPERTY_BT_NAME = "bluetoothName";
63 }