]> git.basschouten.com Git - openhab-addons.git/blob
23cb627fdf4803dce3d2ed8f06ec0a756ce08320
[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.boschshc.internal.services.airqualitylevel.dto;
14
15 import org.openhab.binding.boschshc.internal.services.dto.BoschSHCServiceState;
16
17 /**
18  * Represents the state of a device as reported from the Smart Home Controller
19  *
20  * @author Stefan Kästle - Initial contribution
21  */
22 public class AirQualityLevelServiceState extends BoschSHCServiceState {
23
24     public AirQualityLevelServiceState() {
25         super("airQualityLevelState");
26     }
27
28     /*
29      * {"maxTemperature":25,"minTemperature":20,"custom":false,"name":"HALLWAY","maxHumidity":60,"minHumidity":40,
30      * "maxPurity":1000}
31      */
32     class ComfortZone {
33         double maxTemperature;
34         double minTemperature;
35         boolean custom;
36         String name;
37         double maxHumidity;
38         double minHumidity;
39         double maxPurity;
40     }
41
42     /**
43      * {"temperatureRating":"GOOD","humidityRating":"MEDIUM","purity":620,"comfortZone":....,"@type":"airQualityLevelState",
44      * "purityRating":"GOOD","temperature":23.77,"description":"LITTLE_DRY","humidity":32.69,"combinedRating":"MEDIUM"}
45      */
46
47     public String temperatureRating;
48     public String humidityRating;
49
50     public int purity;
51
52     public ComfortZone comfortZone;
53
54     public String purityRating;
55
56     public double temperature;
57     public String description;
58
59     public double humidity;
60     public String combinedRating;
61 }