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