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.hyperion.internal;
15 import java.util.HashSet;
18 import org.openhab.core.thing.ThingTypeUID;
21 * The {@link HyperionBindingConstants} class defines common constants, which are
22 * used across the whole binding.
24 * @author Daniel Walters - Initial contribution
26 public class HyperionBindingConstants {
28 public static final String BINDING_ID = "hyperion";
30 public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = new HashSet<>();
32 // List of all Channel ids
33 public static final String CHANNEL_BRIGHTNESS = "brightness";
34 public static final String CHANNEL_COLOR = "color";
35 public static final String CHANNEL_CLEAR = "clear";
36 public static final String CHANNEL_EFFECT = "effect";
37 public static final String CHANNEL_BLACKBORDER = "blackborder";
38 public static final String CHANNEL_SMOOTHING = "smoothing";
39 public static final String CHANNEL_KODICHECKER = "kodichecker";
40 public static final String CHANNEL_FORWARDER = "forwarder";
41 public static final String CHANNEL_UDPLISTENER = "udplistener";
42 public static final String CHANNEL_BOBLIGHTSERVER = "boblightserver";
43 public static final String CHANNEL_GRABBER = "grabber";
44 public static final String CHANNEL_V4L = "v4l";
45 public static final String CHANNEL_LEDDEVICE = "leddevice";
46 public static final String CHANNEL_HYPERION_ENABLED = "hyperionenabled";
48 // Hyperion components
49 public static final String COMPONENT_BLACKBORDER = "BLACKBORDER";
50 public static final String COMPONENT_SMOOTHING = "SMOOTHING";
51 public static final String COMPONENT_KODICHECKER = "KODICHECKER";
52 public static final String COMPONENT_FORWARDER = "FORWARDER";
53 public static final String COMPONENT_UDPLISTENER = "UDPLISTENER";
54 public static final String COMPONENT_BOBLIGHTSERVER = "BOBLIGHTSERVER";
55 public static final String COMPONENT_GRABBER = "GRABBER";
56 public static final String COMPONENT_V4L = "V4L";
57 public static final String COMPONENT_LEDDEVICE = "LEDDEVICE";
58 public static final String COMPONENT_ALL = "ALL";
60 // List of all properties
61 public static final String PROP_HOST = "host";
62 public static final String PROP_PORT = "port";
63 public static final String PROP_PRIORITY = "priority";
64 public static final String PROP_POLL_FREQUENCY = "poll_frequency";
65 public static final String PROP_ORIGIN = "origin";
68 public static final String HOST = "host";
69 public static final String PORT = "port";
72 public static final String SERVER_V1 = "serverV1";
73 public static final String SERVER_NG = "serverNG";
75 // List of all Thing Type UIDs
76 public static final ThingTypeUID THING_TYPE_SERVER_V1 = new ThingTypeUID(BINDING_ID, SERVER_V1);
77 public static final ThingTypeUID THING_TYPE_SERVER_NG = new ThingTypeUID(BINDING_ID, SERVER_NG);
80 SUPPORTED_THING_TYPES_UIDS.add(THING_TYPE_SERVER_V1);
81 SUPPORTED_THING_TYPES_UIDS.add(THING_TYPE_SERVER_NG);