]> git.basschouten.com Git - openhab-addons.git/blob
d76daad88efb11714c7c5279e8f3598328d587a3
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.mystrom.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * The {@link MyStromBindingConstants} class defines common constants, which are
20  * used across the whole binding.
21  *
22  * @author Paul Frank - Initial contribution
23  * @author Frederic Chastagnol - Add constants for myStrom bulb support
24  */
25 @NonNullByDefault
26 public class MyStromBindingConstants {
27
28     public static final int DEFAULT_REFRESH_RATE_SECONDS = 10;
29
30     private static final String BINDING_ID = "mystrom";
31
32     // List of all Thing Type UIDs
33     public static final ThingTypeUID THING_TYPE_PLUG = new ThingTypeUID(BINDING_ID, "mystromplug");
34     public static final ThingTypeUID THING_TYPE_BULB = new ThingTypeUID(BINDING_ID, "mystrombulb");
35
36     // List of all Channel ids
37     public static final String CHANNEL_SWITCH = "switch";
38     public static final String CHANNEL_POWER = "power";
39     public static final String CHANNEL_TEMPERATURE = "temperature";
40     public static final String CHANNEL_COLOR = "color";
41     public static final String CHANNEL_RAMP = "ramp";
42     public static final String CHANNEL_MODE = "mode";
43     public static final String CHANNEL_COLOR_TEMPERATURE = "colorTemperature";
44     public static final String CHANNEL_BRIGHTNESS = "brightness";
45
46     // Config
47     public static final String CONFIG_MAC = "mac";
48
49     // List of all Properties
50     public static final String PROPERTY_MAC = "mac";
51     public static final String PROPERTY_VERSION = "version";
52     public static final String PROPERTY_TYPE = "type";
53     public static final String PROPERTY_SSID = "ssid";
54     public static final String PROPERTY_IP = "ip";
55     public static final String PROPERTY_MASK = "mask";
56     public static final String PROPERTY_GW = "gw";
57     public static final String PROPERTY_DNS = "dns";
58     public static final String PROPERTY_STATIC = "static";
59     public static final String PROPERTY_CONNECTED = "connected";
60     public static final String PROPERTY_LAST_REFRESH = "lastRefresh";
61
62     // myStrom Bulb modes
63     public static final String RGB = "rgb";
64     public static final String HSV = "hsv";
65     public static final String MONO = "mono";
66 }