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.etherrain.internal;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.ThingTypeUID;
21 * The {@link EtherRainBindingConstants} class defines common constants, which are
22 * used across the whole binding.
24 * @author Joe Inkenbrandt - Initial contribution
27 public class EtherRainBindingConstants {
29 private static final String BINDING_ID = "etherrain";
31 // List of all Thing ids
33 private static final String ETHERRAIN = "etherrain";
35 // List of all Thing Type UIDs
37 public static final ThingTypeUID ETHERRAIN_THING = new ThingTypeUID(BINDING_ID, ETHERRAIN);
38 public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Set.of(ETHERRAIN_THING);
40 // List of internal default values
42 public static final int DEFAULT_WAIT_BEFORE_INITIAL_REFRESH = 30;
43 public static final int DEFAULT_REFRESH_RATE = 60;
44 public static final short DISCOVERY_SUBNET_MASK = 24;
45 public static final int DISCOVERY_THREAD_POOL_SIZE = 15;
46 public static final int DISCOVERY_THREAD_POOL_SHUTDOWN_WAIT_TIME_SECONDS = 300;
47 public static final boolean DISCOVERY_DEFAULT_AUTO_DISCOVER = false;
48 public static final int DISCOVERY_DEFAULT_TIMEOUT_RATE = 500;
49 public static final int DISCOVERY_DEFAULT_IP_TIMEOUT_RATE = 750;
51 // List of all Channel ids
53 public static final String CHANNEL_ID_COMMAND_STATUS = "commandstatus";
54 public static final String CHANNEL_ID_OPERATING_STATUS = "operatingstatus";
55 public static final String CHANNEL_ID_OPERATING_RESULT = "operatingresult";
56 public static final String CHANNEL_ID_RELAY_INDEX = "relayindex";
57 public static final String CHANNEL_ID_SENSOR_RAIN = "rainsensor";
58 public static final String CHANNEL_ID_START_DELAY = "startdelay";
59 public static final String CHANNEL_ID_EXECUTE = "execute";
60 public static final String CHANNEL_ID_CLEAR = "clear";