]> git.basschouten.com Git - openhab-addons.git/blob
b0990bfbb40f73d0d7e768658c3bfc82478ce5e2
[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.ojelectronics.internal.models.thermostat;
14
15 import java.util.Date;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19 import org.openhab.binding.ojelectronics.internal.models.groups.ScheduleModel;
20
21 import com.google.gson.annotations.SerializedName;
22
23 /**
24  * Model for a thermostat
25  *
26  * @author Christian Kittel - Initial contribution
27  */
28 @NonNullByDefault
29 public class ThermostatModel extends ThermostatModelBase {
30
31     public int id;
32
33     public int action;
34
35     public String groupName = "";
36
37     public int groupId;
38
39     public int customerId;
40
41     @SerializedName("SWversion")
42     public String softwareVersion = "";
43
44     public boolean online;
45
46     public boolean heating;
47
48     public int roomTemperature;
49
50     public int floorTemperature;
51
52     public int regulationMode;
53
54     public @Nullable ScheduleModel schedule;
55
56     public int comfortSetpoint;
57
58     public Date comfortEndTime = new Date();
59
60     public int manualModeSetpoint;
61
62     public boolean vacationEnabled;
63
64     public Date vacationBeginDay = new Date();
65
66     public Date vacationEndDay = new Date();
67
68     public int vacationTemperature;
69
70     public boolean lastPrimaryModeIsAuto;
71
72     public Date boostEndTime = new Date();
73
74     public int frostProtectionTemperature;
75
76     public int errorCode;
77
78     public String thermostatName = "";
79
80     public boolean openWindow;
81
82     public boolean adaptiveMode;
83
84     public boolean daylightSaving;
85
86     public int sensorAppl;
87
88     public int minSetpoint;
89
90     public int maxSetpoint;
91
92     public int timeZone;
93
94     public boolean daylightSavingActive;
95
96     public int floorType;
97 }