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;
15 import java.util.Collections;
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.openhab.core.thing.ThingTypeUID;
22 * The {@link EtherRainConfiguration} class contains fields mapping thing configuration parameters.
24 * @author Joe Inkenbrandt - Initial contribution
28 public class EtherRainConfiguration {
30 public static final String BINDING_ID = "etherrrain";
32 public static final ThingTypeUID ETHERRAIN_THING_TYPE = new ThingTypeUID(BINDING_ID, "etherrain");
34 public static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Collections.singleton(ETHERRAIN_THING_TYPE);
37 * Hostname of the EtherRain API.
39 public String host = "";
42 * The port the EtherRain API is listening on.
43 * Default: 80 per specification
48 * The password to connect to the EtherRain API.
49 * Default: pw per specification
51 public String password = "pw";
54 * Number of seconds in between refreshes from the EtherRain device.
56 public int refresh = 60;
59 * Default Delay for Program Timer
61 public int programDelay = 0;
64 * Default Zone on times
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;