2 * Copyright (c) 2010-2023 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 enum YioRemoteDockHandleStatus {
32 AUTHENTICATION_PROCESS,
33 AUTHENTICATION_FAILED,
34 AUTHENTICATION_COMPLETE,
38 CONNECTION_ESTABLISHED,
43 public enum YioRemoteMessages {
51 // List of all Thing Type UIDs
52 public static final ThingTypeUID THING_TYPE_YIOREMOTEDOCK = new ThingTypeUID(BINDING_ID, "yioRemoteDock");
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";
58 // List of all Channel ids
59 public static final String RECEIVER_SWITCH_CHANNEL = "receiverswitch";
60 public static final String STATUS_STRING_CHANNEL = "status";
62 // Configuration elements
63 public static final String CONFIG_YIODOCKHOST = "host";
64 public static final String CONFIG_YIODOCKACCESSTOKEN = "accesstoken";