]> git.basschouten.com Git - openhab-addons.git/blob
280a08adcce2911cf106ee4d4b34f86dc314611b
[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.govee.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * The {@link GoveeBindingConstants} class defines common constants, which are
20  * used across the whole binding.
21  *
22  * @author Stefan Höhn - Initial contribution
23  */
24 @NonNullByDefault
25 public class GoveeBindingConstants {
26
27     // Thing properties
28     public static final String MAC_ADDRESS = "macAddress";
29     public static final String IP_ADDRESS = "hostname";
30     public static final String DEVICE_TYPE = "deviceType";
31     public static final String PRODUCT_NAME = "productName";
32     public static final String HW_VERSION = "wifiHardwareVersion";
33     public static final String SW_VERSION = "wifiSoftwareVersion";
34     private static final String BINDING_ID = "govee";
35
36     // List of all Thing Type UIDs
37     public static final ThingTypeUID THING_TYPE_LIGHT = new ThingTypeUID(BINDING_ID, "govee-light");
38
39     // List of all Channel ids
40     public static final String CHANNEL_COLOR = "color";
41     public static final String CHANNEL_COLOR_TEMPERATURE = "color-temperature";
42     public static final String CHANNEL_COLOR_TEMPERATURE_ABS = "color-temperature-abs";
43
44     // Limit values of channels
45     public static final Double COLOR_TEMPERATURE_MIN_VALUE = 2000.0;
46     public static final Double COLOR_TEMPERATURE_MAX_VALUE = 9000.0;
47 }