]> git.basschouten.com Git - openhab-addons.git/blob
4ec1f40776a5251e32d2b3503ba6ca6d3ef916ba
[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.etherrain.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 EtherRainBindingConstants} class defines common constants, which are
22  * used across the whole binding.
23  *
24  * @author Joe Inkenbrandt - Initial contribution
25  */
26 @NonNullByDefault
27 public class EtherRainBindingConstants {
28
29     private static final String BINDING_ID = "etherrain";
30
31     // List of all Thing ids
32
33     private static final String ETHERRAIN = "etherrain";
34
35     // List of all Thing Type UIDs
36
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);
39
40     // List of internal default values
41
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;
50
51     // List of all Channel ids
52
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";
61 }