]> git.basschouten.com Git - openhab-addons.git/blob
7de0008edc59396309aaf44589245572ee7c8769
[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.solarwatt.internal.configuration;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * The {@link SolarwattBridgeConfiguration} class contains fields mapping thing configuration parameters.
19  *
20  * @author Sven Carstens - Initial contribution
21  */
22 @NonNullByDefault
23 public class SolarwattBridgeConfiguration {
24     private static final int DEFAULT_RESCAN_MINUTES = 5;
25     private static final int DEFAULT_REFRESH_SECONDS = 30;
26
27     /**
28      * Hostname or ip where the solarwatt energymanager is reachable.
29      *
30      * Energy manager does not set a default name via DHCP.
31      */
32     public String hostname = "";
33
34     /**
35      * Refresh interval for updating devices data
36      */
37     public int refresh = DEFAULT_REFRESH_SECONDS;
38
39     /**
40      * Refresh interval for reading of devices (not the devices data)
41      */
42     public int rescan = DEFAULT_RESCAN_MINUTES;
43 }