]> git.basschouten.com Git - openhab-addons.git/blob
879e5c47783a0e91e06188b0f8c16dcaa10a8fa0
[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.yeelight.internal;
14
15 import org.openhab.core.thing.ThingTypeUID;
16
17 /**
18  * The {@link YeelightBindingConstants} class defines common constants, which are
19  * used across the whole binding.
20  *
21  * @author Coaster Li - Initial contribution
22  * @author Joe Ho - Added Duration / Added command channel
23  */
24 public class YeelightBindingConstants {
25
26     public static final String BINDING_ID = "yeelight";
27
28     // List of all Thing Type UIDs
29     public static final ThingTypeUID THING_TYPE_CEILING = new ThingTypeUID(BINDING_ID, "ceiling");
30     public static final ThingTypeUID THING_TYPE_CEILING1 = new ThingTypeUID(BINDING_ID, "ceiling1");
31     public static final ThingTypeUID THING_TYPE_CEILING3 = new ThingTypeUID(BINDING_ID, "ceiling3");
32     public static final ThingTypeUID THING_TYPE_CEILING4 = new ThingTypeUID(BINDING_ID, "ceiling4");
33     public static final ThingTypeUID THING_TYPE_DOLPHIN = new ThingTypeUID(BINDING_ID, "dolphin");
34     public static final ThingTypeUID THING_TYPE_CTBULB = new ThingTypeUID(BINDING_ID, "ct_bulb");
35     public static final ThingTypeUID THING_TYPE_WONDER = new ThingTypeUID(BINDING_ID, "wonder");
36     public static final ThingTypeUID THING_TYPE_STRIPE = new ThingTypeUID(BINDING_ID, "stripe");
37     public static final ThingTypeUID THING_TYPE_DESKLAMP = new ThingTypeUID(BINDING_ID, "desklamp");
38
39     // List of thing Parameters names
40     public static final String PARAMETER_DEVICE_ID = "deviceId";
41     public static final String PARAMETER_DURATION = "duration";
42
43     // List of all Channel ids
44     public static final String CHANNEL_BRIGHTNESS = "brightness";
45     public static final String CHANNEL_COLOR = "color";
46     public static final String CHANNEL_COLOR_TEMPERATURE = "colorTemperature";
47     public static final String CHANNEL_COMMAND = "command";
48     public static final String CHANNEL_BACKGROUND_COLOR = "backgroundColor";
49     public static final String CHANNEL_NIGHTLIGHT = "nightlight";
50
51     // Constants used
52     public static final int COLOR_TEMPERATURE_MINIMUM = 1700;
53     public static final int COLOR_TEMPERATURE_STEP = 48;
54 }