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