]> git.basschouten.com Git - openhab-addons.git/blob
a23d92c048c94e9b861fc5ebda8b96b889993fcc
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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.hyperion.internal;
14
15 import java.util.HashSet;
16 import java.util.Set;
17
18 import org.openhab.core.thing.ThingTypeUID;
19
20 /**
21  * The {@link HyperionBindingConstants} class defines common constants, which are
22  * used across the whole binding.
23  *
24  * @author Daniel Walters - Initial contribution
25  */
26 public class HyperionBindingConstants {
27
28     public static final String BINDING_ID = "hyperion";
29
30     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = new HashSet<>();
31
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";
47
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";
59
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";
66
67     // config
68     public static final String HOST = "host";
69     public static final String PORT = "port";
70
71     // thing-types
72     public static final String SERVER_V1 = "serverV1";
73     public static final String SERVER_NG = "serverNG";
74
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);
78
79     static {
80         SUPPORTED_THING_TYPES_UIDS.add(THING_TYPE_SERVER_V1);
81         SUPPORTED_THING_TYPES_UIDS.add(THING_TYPE_SERVER_NG);
82     }
83 }