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.yeelight.internal;
15 import org.openhab.core.thing.ThingTypeUID;
18 * The {@link YeelightBindingConstants} class defines common constants, which are
19 * used across the whole binding.
21 * @author Coaster Li - Initial contribution
22 * @author Joe Ho - Added Duration / Added command channel
24 public class YeelightBindingConstants {
26 public static final String BINDING_ID = "yeelight";
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");
39 // List of thing Parameters names
40 public static final String PARAMETER_DEVICE_ID = "deviceId";
41 public static final String PARAMETER_DURATION = "duration";
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";
52 public static final int COLOR_TEMPERATURE_MINIMUM = 1700;
53 public static final int COLOR_TEMPERATURE_STEP = 48;