]> git.basschouten.com Git - openhab-addons.git/blob
b1d89950c3092261fd5fd460bc4e07ed71521d9b
[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.config;
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 EtherRainConfiguration} class contains fields mapping thing configuration parameters.
22  *
23  * @author Joe Inkenbrandt - Initial contribution
24  */
25
26 @NonNullByDefault
27 public class EtherRainConfiguration {
28
29     public static final String BINDING_ID = "etherrrain";
30
31     public static final ThingTypeUID ETHERRAIN_THING_TYPE = new ThingTypeUID(BINDING_ID, "etherrain");
32
33     public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Set.of(ETHERRAIN_THING_TYPE);
34
35     /**
36      * Hostname of the EtherRain API.
37      */
38     public String host = "";
39
40     /**
41      * The port the EtherRain API is listening on.
42      * Default: 80 per specification
43      */
44     public int port = 80;
45
46     /**
47      * The password to connect to the EtherRain API.
48      * Default: pw per specification
49      */
50     public String password = "pw";
51
52     /**
53      * Number of seconds in between refreshes from the EtherRain device.
54      */
55     public int refresh = 60;
56
57     /**
58      * Default Delay for Program Timer
59      */
60     public int programDelay = 0;
61
62     /**
63      * Default Zone on times
64      */
65     public int zoneOnTime1 = 0;
66     public int zoneOnTime2 = 0;
67     public int zoneOnTime3 = 0;
68     public int zoneOnTime4 = 0;
69     public int zoneOnTime5 = 0;
70     public int zoneOnTime6 = 0;
71     public int zoneOnTime7 = 0;
72     public int zoneOnTime8 = 0;
73 }