]> git.basschouten.com Git - openhab-addons.git/blob
a020f485f70c7e05a2f45daa75f2b471e6bac37e
[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.anthem.internal;
14
15 import java.util.Set;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.ThingTypeUID;
19
20 /**
21  * The {@link AnthemBindingConstants} class defines common constants, which are
22  * used across the entire binding.
23  *
24  * @author Mark Hilbush - Initial contribution
25  */
26 @NonNullByDefault
27 public class AnthemBindingConstants {
28     public static final String BINDING_ID = "anthem";
29
30     public static final ThingTypeUID THING_TYPE_ANTHEM = new ThingTypeUID(BINDING_ID, "anthem");
31
32     // List of all Thing Type UIDs
33     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Set.of(THING_TYPE_ANTHEM);
34
35     // Channel Ids
36     public static final String CHANNEL_POWER = "power";
37     public static final String CHANNEL_VOLUME = "volume";
38     public static final String CHANNEL_VOLUME_DB = "volumeDB";
39     public static final String CHANNEL_MUTE = "mute";
40     public static final String CHANNEL_ACTIVE_INPUT = "activeInput";
41     public static final String CHANNEL_ACTIVE_INPUT_SHORT_NAME = "activeInputShortName";
42     public static final String CHANNEL_ACTIVE_INPUT_LONG_NAME = "activeInputLongName";
43
44     // Connection-related configuration parameters
45     public static final int DEFAULT_PORT = 14999;
46     public static final int DEFAULT_RECONNECT_INTERVAL_MINUTES = 2;
47     public static final int DEFAULT_COMMAND_DELAY_MSEC = 100;
48
49     public static final char COMMAND_TERMINATION_CHAR = ';';
50 }