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
14 package org.openhab.binding.mqtt.espmilighthub.internal;
16 import static org.openhab.binding.mqtt.MqttBindingConstants.BINDING_ID;
18 import java.math.BigDecimal;
21 import org.eclipse.jdt.annotation.NonNullByDefault;
22 import org.openhab.core.thing.ThingTypeUID;
25 * The {@link EspMilightHubBindingConstants} class defines common constants, which are
26 * used across the whole binding.
28 * @author Matthew Skinner - Initial contribution
31 public class EspMilightHubBindingConstants {
32 public static final String STATES_BASE_TOPIC = "milight/states/";
33 public static final String COMMANDS_BASE_TOPIC = "milight/commands/";
34 public static final BigDecimal BIG_DECIMAL_100 = new BigDecimal(100);
35 // List of all Thing Type UIDs
36 public static final ThingTypeUID THING_TYPE_RGB_CCT = new ThingTypeUID(BINDING_ID, "rgb_cct");
37 public static final ThingTypeUID THING_TYPE_CCT = new ThingTypeUID(BINDING_ID, "cct");
38 public static final ThingTypeUID THING_TYPE_RGBW = new ThingTypeUID(BINDING_ID, "rgbw");
39 public static final ThingTypeUID THING_TYPE_RGB = new ThingTypeUID(BINDING_ID, "rgb");
40 public static final ThingTypeUID THING_TYPE_FUT089 = new ThingTypeUID(BINDING_ID, "fut089");
41 public static final ThingTypeUID THING_TYPE_FUT091 = new ThingTypeUID(BINDING_ID, "fut091");
43 public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES = Set.of(THING_TYPE_RGBW, THING_TYPE_RGB_CCT,
44 THING_TYPE_FUT089, THING_TYPE_FUT091, THING_TYPE_CCT, THING_TYPE_RGB);
47 public static final String CHANNEL_LEVEL = "level";
48 public static final String CHANNEL_COLOUR = "colour";
49 public static final String CHANNEL_COLOURTEMP = "colourTemperature";
50 public static final String CHANNEL_DISCO_MODE = "discoMode";
51 public static final String CHANNEL_BULB_MODE = "bulbMode";
52 public static final String CHANNEL_COMMAND = "command";