]> git.basschouten.com Git - openhab-addons.git/blob
d46ae5b3bc65f9772b1db64b876e191b6c1b129c
[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.deconz.internal.dto;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17 import org.openhab.binding.deconz.internal.types.ThermostatMode;
18
19 /**
20  * The {@link SensorConfig} is send by the the Rest API.
21  * It is part of a {@link SensorMessage}.
22  *
23  * This should be in sync with the supported sensors from
24  * https://dresden-elektronik.github.io/deconz-rest-doc/sensors/.
25  *
26  * @author David Graeff - Initial contribution
27  * @author Lukas Agethen - Add Thermostat parameters
28  */
29 @NonNullByDefault
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;
38
39     @Override
40     public String toString() {
41         return "SensorConfig{" + "on=" + on + ", reachable=" + reachable + ", battery=" + battery + ", temperature="
42                 + temperature + ", heatsetpoint=" + heatsetpoint + ", mode=" + mode + ", offset=" + offset + "}";
43     }
44 }