]> git.basschouten.com Git - openhab-addons.git/blob
caef352e8fa7354aafce22cce1c57aa44ebe11c8
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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         CONNECTION_FAILED,
36         CONNECTION_ESTABLISHED;
37     }
38
39     public static enum YioRemoteMessages {
40         IR_SEND,
41         AUTHENTICATE_MESSAGE,
42         HEARTBEAT_MESSAGE,
43         IR_RECEIVER_ON,
44         IR_RECEIVER_OFF;
45     }
46
47     // List of all Thing Type UIDs
48     public static final ThingTypeUID THING_TYPE_YIOREMOTEDOCK = new ThingTypeUID(BINDING_ID, "yioremotedock");
49
50     // List of all Channel Groups Group Channel ids
51     public static final String GROUP_INPUT = "input";
52     public static final String GROUP_OUTPUT = "output";
53
54     // List of all Channel ids
55     public static final String RECEIVER_SWITCH_CHANNEL = "receiverswitch";
56     public static final String STATUS_STRING_CHANNEL = "status";
57
58     // Configuration elements
59     public static final String CONFIG_YIODOCKHOST = "host";
60     public static final String CONFIG_YIODOCKACCESSTOKEN = "accesstoken";
61 }