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