]> git.basschouten.com Git - openhab-addons.git/blob
877321264d0c6eaaa87cea2ba9bdf1a11d36333f
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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.plugwise.internal;
14
15 import java.util.Set;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.ThingTypeUID;
19
20 /**
21  * The {@link PlugwiseBindingConstants} class defines common constants, which are used across the whole binding.
22  *
23  * @author Wouter Born - Initial contribution
24  */
25 @NonNullByDefault
26 public class PlugwiseBindingConstants {
27
28     public static final String BINDING_ID = "plugwise";
29
30     // List of all Channel IDs
31     public static final String CHANNEL_CLOCK = "clock";
32     public static final String CHANNEL_ENERGY = "energy";
33     public static final String CHANNEL_ENERGY_STAMP = "energystamp";
34     public static final String CHANNEL_HUMIDITY = "humidity";
35     public static final String CHANNEL_LAST_SEEN = "lastseen";
36     public static final String CHANNEL_LEFT_BUTTON_STATE = "leftbuttonstate";
37     public static final String CHANNEL_POWER = "power";
38     public static final String CHANNEL_REAL_TIME_CLOCK = "realtimeclock";
39     public static final String CHANNEL_RIGHT_BUTTON_STATE = "rightbuttonstate";
40     public static final String CHANNEL_STATE = "state";
41     public static final String CHANNEL_TEMPERATURE = "temperature";
42     public static final String CHANNEL_TRIGGERED = "triggered";
43
44     // List of all configuration properties
45     public static final String CONFIG_PROPERTY_MAC_ADDRESS = "macAddress";
46     public static final String CONFIG_PROPERTY_RECALIBRATE = "recalibrate";
47     public static final String CONFIG_PROPERTY_SERIAL_PORT = "serialPort";
48     public static final String CONFIG_PROPERTY_UPDATE_CONFIGURATION = "updateConfiguration";
49     public static final String CONFIG_PROPERTY_UPDATE_INTERVAL = "updateInterval";
50
51     // List of all property IDs
52     public static final String PROPERTY_HERTZ = "hertz";
53     public static final String PROPERTY_MAC_ADDRESS = "macAddress";
54
55     // List of all Thing Type UIDs
56     public static final ThingTypeUID THING_TYPE_CIRCLE = new ThingTypeUID(BINDING_ID, "circle");
57     public static final ThingTypeUID THING_TYPE_CIRCLE_PLUS = new ThingTypeUID(BINDING_ID, "circleplus");
58     public static final ThingTypeUID THING_TYPE_SCAN = new ThingTypeUID(BINDING_ID, "scan");
59     public static final ThingTypeUID THING_TYPE_SENSE = new ThingTypeUID(BINDING_ID, "sense");
60     public static final ThingTypeUID THING_TYPE_STEALTH = new ThingTypeUID(BINDING_ID, "stealth");
61     public static final ThingTypeUID THING_TYPE_STICK = new ThingTypeUID(BINDING_ID, "stick");
62     public static final ThingTypeUID THING_TYPE_SWITCH = new ThingTypeUID(BINDING_ID, "switch");
63
64     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Set.of(THING_TYPE_CIRCLE, THING_TYPE_CIRCLE_PLUS,
65             THING_TYPE_SCAN, THING_TYPE_SENSE, THING_TYPE_STEALTH, THING_TYPE_STICK, THING_TYPE_SWITCH);
66 }