]> git.basschouten.com Git - openhab-addons.git/blob
b1a8954edd58f4bf392ced09868eb6cebb7f0cec
[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.bluetooth.daikinmadoka.internal.model;
14
15 import javax.measure.quantity.Temperature;
16 import javax.measure.quantity.Time;
17
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.eclipse.jdt.annotation.Nullable;
20 import org.openhab.binding.bluetooth.daikinmadoka.internal.model.MadokaProperties.FanSpeed;
21 import org.openhab.binding.bluetooth.daikinmadoka.internal.model.MadokaProperties.OperationMode;
22 import org.openhab.core.library.types.OnOffType;
23 import org.openhab.core.library.types.PercentType;
24 import org.openhab.core.library.types.QuantityType;
25
26 /**
27  * This class contains the current state of the controllerw
28  *
29  * @author Benjamin Lafois - Initial contribution
30  *
31  */
32 @NonNullByDefault
33 public class MadokaSettings {
34
35     private @Nullable OnOffType onOffState;
36
37     private @Nullable QuantityType<Temperature> setpoint;
38
39     private @Nullable QuantityType<Temperature> indoorTemperature;
40     private @Nullable QuantityType<Temperature> outdoorTemperature;
41
42     private @Nullable FanSpeed fanspeed;
43
44     private @Nullable OperationMode operationMode;
45
46     private @Nullable String homekitCurrentMode;
47     private @Nullable String homekitTargetMode;
48
49     private @Nullable String communicationControllerVersion;
50     private @Nullable String remoteControllerVersion;
51
52     private @Nullable PercentType eyeBrightness;
53     private @Nullable QuantityType<Time> indoorPowerHours;
54     private @Nullable QuantityType<Time> indoorOperationHours;
55     private @Nullable QuantityType<Time> indoorFanHours;
56
57     private @Nullable Boolean cleanFilterIndicator;
58
59     public @Nullable Boolean getCleanFilterIndicator() {
60         return cleanFilterIndicator;
61     }
62
63     public void setCleanFilterIndicator(Boolean cleanFilterIndicator) {
64         this.cleanFilterIndicator = cleanFilterIndicator;
65     }
66
67     public @Nullable OnOffType getOnOffState() {
68         return onOffState;
69     }
70
71     public void setOnOffState(OnOffType onOffState) {
72         this.onOffState = onOffState;
73     }
74
75     public @Nullable QuantityType<Temperature> getSetpoint() {
76         return setpoint;
77     }
78
79     public void setSetpoint(QuantityType<Temperature> setpoint) {
80         this.setpoint = setpoint;
81     }
82
83     public @Nullable QuantityType<Temperature> getIndoorTemperature() {
84         return indoorTemperature;
85     }
86
87     public void setIndoorTemperature(QuantityType<Temperature> indoorTemperature) {
88         this.indoorTemperature = indoorTemperature;
89     }
90
91     public @Nullable QuantityType<Temperature> getOutdoorTemperature() {
92         return outdoorTemperature;
93     }
94
95     public void setOutdoorTemperature(QuantityType<Temperature> outdoorTemperature) {
96         this.outdoorTemperature = outdoorTemperature;
97     }
98
99     public @Nullable FanSpeed getFanspeed() {
100         return fanspeed;
101     }
102
103     public void setFanspeed(FanSpeed fanspeed) {
104         this.fanspeed = fanspeed;
105     }
106
107     public @Nullable OperationMode getOperationMode() {
108         return operationMode;
109     }
110
111     public void setOperationMode(OperationMode operationMode) {
112         this.operationMode = operationMode;
113     }
114
115     public @Nullable String getHomekitCurrentMode() {
116         return homekitCurrentMode;
117     }
118
119     public void setHomekitCurrentMode(String homekitCurrentMode) {
120         this.homekitCurrentMode = homekitCurrentMode;
121     }
122
123     public @Nullable String getHomekitTargetMode() {
124         return homekitTargetMode;
125     }
126
127     public void setHomekitTargetMode(String homekitTargetMode) {
128         this.homekitTargetMode = homekitTargetMode;
129     }
130
131     public @Nullable String getCommunicationControllerVersion() {
132         return communicationControllerVersion;
133     }
134
135     public void setCommunicationControllerVersion(String communicationControllerVersion) {
136         this.communicationControllerVersion = communicationControllerVersion;
137     }
138
139     public @Nullable String getRemoteControllerVersion() {
140         return remoteControllerVersion;
141     }
142
143     public void setRemoteControllerVersion(String remoteControllerVersion) {
144         this.remoteControllerVersion = remoteControllerVersion;
145     }
146
147     public @Nullable PercentType getEyeBrightness() {
148         return eyeBrightness;
149     }
150
151     public void setEyeBrightness(PercentType eyeBrightness) {
152         this.eyeBrightness = eyeBrightness;
153     }
154
155     public @Nullable QuantityType<Time> getIndoorPowerHours() {
156         return indoorPowerHours;
157     }
158
159     public void setIndoorPowerHours(QuantityType<Time> indoorPowerHours) {
160         this.indoorPowerHours = indoorPowerHours;
161     }
162
163     public @Nullable QuantityType<Time> getIndoorOperationHours() {
164         return indoorOperationHours;
165     }
166
167     public void setIndoorOperationHours(QuantityType<Time> indoorOperationHours) {
168         this.indoorOperationHours = indoorOperationHours;
169     }
170
171     public @Nullable QuantityType<Time> getIndoorFanHours() {
172         return indoorFanHours;
173     }
174
175     public void setIndoorFanHours(QuantityType<Time> indoorFanHours) {
176         this.indoorFanHours = indoorFanHours;
177     }
178 }