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.anthem.internal;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.ThingTypeUID;
21 * The {@link AnthemBindingConstants} class defines common constants, which are
22 * used across the entire binding.
24 * @author Mark Hilbush - Initial contribution
27 public class AnthemBindingConstants {
28 public static final String BINDING_ID = "anthem";
30 public static final ThingTypeUID THING_TYPE_ANTHEM = new ThingTypeUID(BINDING_ID, "anthem");
32 // List of all Thing Type UIDs
33 public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Set.of(THING_TYPE_ANTHEM);
36 public static final String CHANNEL_GROUP_GENERAL = "general";
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";
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;
53 public static final char COMMAND_TERMINATION_CHAR = ';';
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";