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.bsblan.internal;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.ThingTypeUID;
21 * The {@link BsbLanBindingConstants} class defines common constants, which are
22 * used across the whole binding.
24 * @author Peter Schraffl - Initial contribution
27 public class BsbLanBindingConstants {
29 private static final String BINDING_ID = "bsblan";
31 // List of all Thing Type UIDs
32 public static final ThingTypeUID THING_TYPE_BRIDGE = new ThingTypeUID(BINDING_ID, "bridge");
33 public static final ThingTypeUID THING_TYPE_PARAMETER = new ThingTypeUID(BINDING_ID, "parameter");
35 // List of all channel ids
36 public static final String PARAMETER_CHANNEL_NAME = "name";
37 public static final String PARAMETER_CHANNEL_NUMBER_VALUE = "number-value";
38 public static final String PARAMETER_CHANNEL_STRING_VALUE = "string-value";
39 public static final String PARAMETER_CHANNEL_SWITCH_VALUE = "switch-value";
40 public static final String PARAMETER_CHANNEL_UNIT = "unit";
41 public static final String PARAMETER_CHANNEL_DESCRIPTION = "description";
42 public static final String PARAMETER_CHANNEL_DATATYPE = "datatype";
44 public static final Set<String> WRITEABLE_CHANNELS = Set.of(PARAMETER_CHANNEL_NUMBER_VALUE,
45 PARAMETER_CHANNEL_STRING_VALUE, PARAMETER_CHANNEL_SWITCH_VALUE);
47 public static final int MIN_REFRESH_INTERVAL = 5;
48 public static final int DEFAULT_REFRESH_INTERVAL = 60;
49 public static final int API_TIMEOUT = 10000;
50 public static final int DEFAULT_API_PORT = 80;