]> git.basschouten.com Git - openhab-addons.git/blob
e697c5021b9c7c915e1debf56c45191e04d057b6
[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 groups
36     public static final String CHANNEL_GROUP_GENERAL = "general";
37
38     // Channel Ids
39     public static final String CHANNEL_POWER = "power";
40     public static final String CHANNEL_VOLUME = "volume";
41     public static final String CHANNEL_VOLUME_DB = "volumeDB";
42     public static final String CHANNEL_MUTE = "mute";
43     public static final String CHANNEL_ACTIVE_INPUT = "activeInput";
44     public static final String CHANNEL_ACTIVE_INPUT_SHORT_NAME = "activeInputShortName";
45     public static final String CHANNEL_ACTIVE_INPUT_LONG_NAME = "activeInputLongName";
46     public static final String CHANNEL_COMMAND = "command";
47
48     // Connection-related configuration parameters
49     public static final int DEFAULT_PORT = 14999;
50     public static final int DEFAULT_RECONNECT_INTERVAL_MINUTES = 2;
51     public static final int DEFAULT_COMMAND_DELAY_MSEC = 100;
52
53     public static final char COMMAND_TERMINATION_CHAR = ';';
54
55     public static final String PROPERTY_REGION = "region";
56     public static final String PROPERTY_SOFTWARE_BUILD_DATE = "softwareBuildDate";
57     public static final String PROPERTY_NUM_AVAILABLE_INPUTS = "numAvailableInputs";
58 }