]> git.basschouten.com Git - openhab-addons.git/blob
da235dd22c8dafa5b10e450ffc1c98eeddc1db6c
[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  */
30 @NonNullByDefault
31 public class HDPowerViewBindingConstants {
32
33     public static final String BINDING_ID = "hdpowerview";
34
35     // List of all Thing Type UIDs
36     public static final ThingTypeUID THING_TYPE_HUB = new ThingTypeUID(BINDING_ID, "hub");
37     public static final ThingTypeUID THING_TYPE_SHADE = new ThingTypeUID(BINDING_ID, "shade");
38
39     // List of all Channel ids
40     public static final String CHANNEL_SHADE_POSITION = "position";
41     public static final String CHANNEL_SHADE_SECONDARY_POSITION = "secondary";
42     public static final String CHANNEL_SHADE_VANE = "vane";
43     public static final String CHANNEL_SHADE_LOW_BATTERY = "lowBattery";
44     public static final String CHANNEL_SHADE_BATTERY_LEVEL = "batteryLevel";
45     public static final String CHANNEL_SHADE_BATTERY_VOLTAGE = "batteryVoltage";
46     public static final String CHANNEL_SHADE_SIGNAL_STRENGTH = "signalStrength";
47
48     public static final String CHANNELTYPE_SCENE_ACTIVATE = "scene-activate";
49
50     public static final List<String> NETBIOS_NAMES = Arrays.asList("PDBU-Hub3.0", "PowerView-Hub");
51
52     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = new HashSet<>();
53
54     static {
55         SUPPORTED_THING_TYPES_UIDS.add(THING_TYPE_HUB);
56         SUPPORTED_THING_TYPES_UIDS.add(THING_TYPE_SHADE);
57     }
58 }