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.deconz.internal.dto;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17 import org.openhab.binding.deconz.internal.types.ThermostatMode;
20 * The {@link SensorConfig} is send by the the Rest API.
21 * It is part of a {@link SensorMessage}.
23 * This should be in sync with the supported sensors from
24 * https://dresden-elektronik.github.io/deconz-rest-doc/sensors/.
26 * @author David Graeff - Initial contribution
27 * @author Lukas Agethen - Add Thermostat parameters
30 public class SensorConfig {
31 public boolean on = true;
32 public boolean reachable = true;
33 public @Nullable Integer battery;
34 public @Nullable Float temperature;
35 public @Nullable Integer heatsetpoint;
36 public @Nullable ThermostatMode mode;
37 public @Nullable Integer offset;
40 public String toString() {
41 return "SensorConfig{" + "on=" + on + ", reachable=" + reachable + ", battery=" + battery + ", temperature="
42 + temperature + ", heatsetpoint=" + heatsetpoint + ", mode=" + mode + ", offset=" + offset + "}";