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