2 * Copyright (c) 2010-2021 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.hdpowerview.internal;
15 import java.util.Arrays;
16 import java.util.HashSet;
17 import java.util.List;
20 import org.eclipse.jdt.annotation.NonNullByDefault;
21 import org.openhab.core.thing.ThingTypeUID;
24 * The {@link HDPowerViewBinding} class defines common constants, which are
25 * used across the whole binding.
27 * @author Andy Lintner - Initial contribution
28 * @author Andrew Fiddian-Green - Added support for secondary rail positions
31 public class HDPowerViewBindingConstants {
33 public static final String BINDING_ID = "hdpowerview";
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");
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";
48 public static final String CHANNELTYPE_SCENE_ACTIVATE = "scene-activate";
50 public static final List<String> NETBIOS_NAMES = Arrays.asList("PDBU-Hub3.0", "PowerView-Hub");
52 public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = new HashSet<>();
55 SUPPORTED_THING_TYPES_UIDS.add(THING_TYPE_HUB);
56 SUPPORTED_THING_TYPES_UIDS.add(THING_TYPE_SHADE);