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
13 package org.openhab.binding.plugwise.internal;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.ThingTypeUID;
21 * The {@link PlugwiseBindingConstants} class defines common constants, which are used across the whole binding.
23 * @author Wouter Born - Initial contribution
26 public class PlugwiseBindingConstants {
28 public static final String BINDING_ID = "plugwise";
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";
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_UPDATE_CONFIGURATION = "updateConfiguration";
48 public static final String CONFIG_PROPERTY_UPDATE_INTERVAL = "updateInterval";
50 // List of all property IDs
51 public static final String PROPERTY_HERTZ = "hertz";
52 public static final String PROPERTY_MAC_ADDRESS = "macAddress";
54 // List of all Thing Type UIDs
55 public static final ThingTypeUID THING_TYPE_CIRCLE = new ThingTypeUID(BINDING_ID, "circle");
56 public static final ThingTypeUID THING_TYPE_CIRCLE_PLUS = new ThingTypeUID(BINDING_ID, "circleplus");
57 public static final ThingTypeUID THING_TYPE_SCAN = new ThingTypeUID(BINDING_ID, "scan");
58 public static final ThingTypeUID THING_TYPE_SENSE = new ThingTypeUID(BINDING_ID, "sense");
59 public static final ThingTypeUID THING_TYPE_STEALTH = new ThingTypeUID(BINDING_ID, "stealth");
60 public static final ThingTypeUID THING_TYPE_STICK = new ThingTypeUID(BINDING_ID, "stick");
61 public static final ThingTypeUID THING_TYPE_SWITCH = new ThingTypeUID(BINDING_ID, "switch");
63 public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Set.of(THING_TYPE_CIRCLE, THING_TYPE_CIRCLE_PLUS,
64 THING_TYPE_SCAN, THING_TYPE_SENSE, THING_TYPE_STEALTH, THING_TYPE_STICK, THING_TYPE_SWITCH);