]> git.basschouten.com Git - openhab-addons.git/blob
83fe75519ad8701ad1bdb676adc9af2e43f9e12a
[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.yioremote.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * The {@link YIOremoteBindingConstants} class defines common constants, which are
20  * used across the whole binding.
21  *
22  * @author Michael Loercher - Initial contribution
23  */
24 @NonNullByDefault
25 public class YIOremoteBindingConstants {
26
27     public static final String BINDING_ID = "yioremote";
28
29     // List of all used global variables
30     public static enum YioRemoteDockHandleStatus {
31         UNINITIALIZED_STATE,
32         AUTHENTICATION_PROCESS,
33         AUTHENTICATION_FAILED,
34         AUTHENTICATION_COMPLETE,
35         SEND_PING,
36         CHECK_PONG,
37         CONNECTION_FAILED,
38         CONNECTION_ESTABLISHED,
39         COMMUNICATION_ERROR,
40         RECONNECTION_PROCESS;
41     }
42
43     public static enum YioRemoteMessages {
44         IR_SEND,
45         AUTHENTICATE_MESSAGE,
46         HEARTBEAT_MESSAGE,
47         IR_RECEIVER_ON,
48         IR_RECEIVER_OFF;
49     }
50
51     // List of all Thing Type UIDs
52     public static final ThingTypeUID THING_TYPE_YIOREMOTEDOCK = new ThingTypeUID(BINDING_ID, "yioRemoteDock");
53
54     // List of all Channel Groups Group Channel ids
55     public static final String GROUP_INPUT = "input";
56     public static final String GROUP_OUTPUT = "output";
57
58     // List of all Channel ids
59     public static final String RECEIVER_SWITCH_CHANNEL = "receiverswitch";
60     public static final String STATUS_STRING_CHANNEL = "status";
61
62     // Configuration elements
63     public static final String CONFIG_YIODOCKHOST = "host";
64     public static final String CONFIG_YIODOCKACCESSTOKEN = "accesstoken";
65 }