]> git.basschouten.com Git - openhab-addons.git/blob
6af053190348d44eaada5c7ed6ca34b645061f52
[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.gardena.internal.model.dto.api;
14
15 import javax.measure.Unit;
16 import javax.measure.quantity.Dimensionless;
17 import javax.measure.quantity.Illuminance;
18 import javax.measure.quantity.Temperature;
19
20 import org.eclipse.jdt.annotation.NonNull;
21 import org.openhab.core.library.unit.SIUnits;
22 import org.openhab.core.library.unit.Units;
23
24 /**
25  * Represents a Gardena object that is sent via the Gardena API.
26  *
27  * @author Gerhard Riegler - Initial contribution
28  */
29 public class SensorService {
30     public TimestampedIntegerValue soilHumidity;
31     public @NonNull Unit<@NonNull Dimensionless> soilHumidityUnit = Units.PERCENT;
32     public TimestampedIntegerValue soilTemperature;
33     public @NonNull Unit<@NonNull Temperature> soilTemperatureUnit = SIUnits.CELSIUS;
34     public TimestampedIntegerValue ambientTemperature;
35     public @NonNull Unit<@NonNull Temperature> ambientTemperatureUnit = SIUnits.CELSIUS;
36     public TimestampedIntegerValue lightIntensity;
37     public @NonNull Unit<@NonNull Illuminance> lightIntensityUnit = Units.LUX;
38 }