2 * Copyright (c) 2010-2020 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.yioremote.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
19 * The {@link YIOremoteBindingConstants} class defines common constants, which are
20 * used across the whole binding.
22 * @author Michael Loercher - Initial contribution
25 public class YIOremoteBindingConstants {
27 public static final String BINDING_ID = "yioremote";
29 // List of all used global variables
30 public static enum YioRemoteDockHandleStatus {
32 AUTHENTICATION_PROCESS,
33 AUTHENTICATION_FAILED,
34 AUTHENTICATION_COMPLETE,
36 CONNECTION_ESTABLISHED;
39 public static enum YioRemoteMessages {
47 // List of all Thing Type UIDs
48 public static final ThingTypeUID THING_TYPE_YIOREMOTEDOCK = new ThingTypeUID(BINDING_ID, "yioremotedock");
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";
54 // List of all Channel ids
55 public static final String RECEIVER_SWITCH_CHANNEL = "receiverswitch";
56 public static final String STATUS_STRING_CHANNEL = "status";
58 // Configuration elements
59 public static final String CONFIG_YIODOCKHOST = "host";
60 public static final String CONFIG_YIODOCKACCESSTOKEN = "accesstoken";