2 * Copyright (c) 2010-2021 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.wled.internal;
15 import java.math.BigDecimal;
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.openhab.core.thing.ThingTypeUID;
22 * The {@link WLedBindingConstants} class defines common constants, which are
23 * used across the whole binding.
25 * @author Matthew Skinner - Initial contribution
28 public class WLedBindingConstants {
30 public static final String BINDING_ID = "wled";
31 public static final BigDecimal BIG_DECIMAL_2_55 = new BigDecimal(2.55);
32 public static final BigDecimal BIG_DECIMAL_182_04 = new BigDecimal(182.04);
34 // List of all Thing Type UIDs
35 public static final ThingTypeUID THING_TYPE_WLED = new ThingTypeUID(BINDING_ID, "wled");
36 public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES = Set.of(THING_TYPE_WLED);
39 public static final String CONFIG_ADDRESS = "address";
40 public static final String CONFIG_POLL_TIME = "pollTime";
41 public static final String CONFIG_SEGMENT_INDEX = "segmentIndex";
42 public static final String CONFIG_SAT_THRESHOLD = "saturationThreshold";
45 public static final String CHANNEL_MASTER_CONTROLS = "masterControls";
46 public static final String CHANNEL_PRIMARY_COLOR = "primaryColor";
47 public static final String CHANNEL_SECONDARY_COLOR = "secondaryColor";
48 public static final String CHANNEL_PRIMARY_WHITE = "primaryWhite";
49 public static final String CHANNEL_SECONDARY_WHITE = "secondaryWhite";
50 public static final String CHANNEL_PALETTES = "palettes";
51 public static final String CHANNEL_PRESETS = "presets";
52 public static final String CHANNEL_PRESET_DURATION = "presetDuration";
53 public static final String CHANNEL_TRANS_TIME = "transformTime";
54 public static final String CHANNEL_PRESET_CYCLE = "presetCycle";
55 public static final String CHANNEL_FX = "fx";
56 public static final String CHANNEL_SPEED = "speed";
57 public static final String CHANNEL_INTENSITY = "intensity";
58 public static final String CHANNEL_SLEEP = "sleep";
59 public static final String CHANNEL_SYNC_SEND = "syncSend";
60 public static final String CHANNEL_SYNC_RECEIVE = "syncReceive";