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.govee.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
19 * The {@link GoveeBindingConstants} class defines common constants, which are
20 * used across the whole binding.
22 * @author Stefan Höhn - Initial contribution
25 public class GoveeBindingConstants {
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";
36 // List of all Thing Type UIDs
37 public static final ThingTypeUID THING_TYPE_LIGHT = new ThingTypeUID(BINDING_ID, "govee-light");
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";
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;