]> git.basschouten.com Git - openhab-addons.git/blob
1e249b12ccc63eff7e9c659ffbaf98d7add0c55a
[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.shelly.internal.config;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * The {@link ShellyThingConfiguration} class contains fields mapping thing configuration parameters.
19  *
20  * @author Markus Michels - Initial contribution
21  */
22 @NonNullByDefault
23 public class ShellyThingConfiguration {
24     public String deviceIp = ""; // ip address of thedevice
25     public String userId = ""; // userid for http basic auth
26     public String password = ""; // password for http basic auth
27
28     public int updateInterval = 60; // schedule interval for the update job
29     public int lowBattery = 15; // threshold for battery value
30     public boolean brightnessAutoOn = true; // true: turn on device if brightness > 0 is set
31
32     public int favoriteUP = 0; // Roller position favorite when control channel receives ON, 0=none
33     public int favoriteDOWN = 0; // Roller position favorite when control channel receives ON, 0=none
34
35     public boolean eventsButton = false; // true: register for Relay btn_xxx events
36     public boolean eventsSwitch = true; // true: register for device out_xxx events
37     public boolean eventsPush = true; // true: register for short/long push events
38     public boolean eventsRoller = true; // true: register for short/long push events
39     public boolean eventsSensorReport = true; // true: register for sensor events
40     public boolean eventsCoIoT = false; // true: use CoIoT events (based on COAP)
41
42     public String localIp = ""; // local ip addresses used to create callback url
43     public String localPort = "8080";
44     public String serviceName = "";
45 }