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.config;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.ThingTypeUID;
21 * The {@link EtherRainConfiguration} class contains fields mapping thing configuration parameters.
23 * @author Joe Inkenbrandt - Initial contribution
27 public class EtherRainConfiguration {
29 public static final String BINDING_ID = "etherrrain";
31 public static final ThingTypeUID ETHERRAIN_THING_TYPE = new ThingTypeUID(BINDING_ID, "etherrain");
33 public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Set.of(ETHERRAIN_THING_TYPE);
36 * Hostname of the EtherRain API.
38 public String host = "";
41 * The port the EtherRain API is listening on.
42 * Default: 80 per specification
47 * The password to connect to the EtherRain API.
48 * Default: pw per specification
50 public String password = "pw";
53 * Number of seconds in between refreshes from the EtherRain device.
55 public int refresh = 60;
58 * Default Delay for Program Timer
60 public int programDelay = 0;
63 * Default Zone on times
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;