]> git.basschouten.com Git - openhab-addons.git/blob
6eb621157351eb5a05da079bcfd5ca5b26993296
[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.hdpowerview.internal;
14
15 import java.util.Arrays;
16 import java.util.HashSet;
17 import java.util.List;
18 import java.util.Set;
19
20 import org.eclipse.jdt.annotation.NonNullByDefault;
21 import org.openhab.core.thing.ThingTypeUID;
22
23 /**
24  * The {@link HDPowerViewBinding} class defines common constants, which are
25  * used across the whole binding.
26  *
27  * @author Andy Lintner - Initial contribution
28  * @author Andrew Fiddian-Green - Added support for secondary rail positions
29  * @author Jacob Laursen - Add support for scene groups
30  */
31 @NonNullByDefault
32 public class HDPowerViewBindingConstants {
33
34     public static final String BINDING_ID = "hdpowerview";
35
36     // List of all Thing Type UIDs
37     public static final ThingTypeUID THING_TYPE_HUB = new ThingTypeUID(BINDING_ID, "hub");
38     public static final ThingTypeUID THING_TYPE_SHADE = new ThingTypeUID(BINDING_ID, "shade");
39
40     // List of all Channel ids
41     public static final String CHANNEL_SHADE_POSITION = "position";
42     public static final String CHANNEL_SHADE_SECONDARY_POSITION = "secondary";
43     public static final String CHANNEL_SHADE_VANE = "vane";
44     public static final String CHANNEL_SHADE_LOW_BATTERY = "lowBattery";
45     public static final String CHANNEL_SHADE_BATTERY_LEVEL = "batteryLevel";
46     public static final String CHANNEL_SHADE_BATTERY_VOLTAGE = "batteryVoltage";
47     public static final String CHANNEL_SHADE_SIGNAL_STRENGTH = "signalStrength";
48
49     public static final String CHANNELTYPE_SCENE_ACTIVATE = "scene-activate";
50     public static final String CHANNELTYPE_SCENE_GROUP_ACTIVATE = "scene-group-activate";
51
52     public static final List<String> NETBIOS_NAMES = Arrays.asList("PDBU-Hub3.0", "PowerView-Hub");
53
54     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = new HashSet<>();
55
56     static {
57         SUPPORTED_THING_TYPES_UIDS.add(THING_TYPE_HUB);
58         SUPPORTED_THING_TYPES_UIDS.add(THING_TYPE_SHADE);
59     }
60 }