2 * Copyright (c) 2010-2024 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.gree.internal;
15 import java.math.BigDecimal;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
20 * The {@link GreeConfiguration} class contains fields mapping thing configuration parameters.
22 * @author John Cunha - Initial contribution
23 * @author Markus Michels - Refactoring, adapted to OH 2.5x
26 public class GreeConfiguration {
27 public String ipAddress = "";
28 public String broadcastAddress = "";
29 public int refresh = 60;
31 * The currentTemperatureOffset is configureable in case the user wants to offset this temperature for calibration
32 * of the temperature sensor.
34 public BigDecimal currentTemperatureOffset = new BigDecimal(0.0);
37 public String toString() {
38 return "Config: ipAddress=" + ipAddress + ", broadcastAddress=" + broadcastAddress + ", refresh=" + refresh
39 + ", currentTemperatureOffset=" + currentTemperatureOffset;