2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.innogysmarthome.internal.client.entity.capability;
15 import org.openhab.binding.innogysmarthome.internal.client.entity.state.BooleanState;
16 import org.openhab.binding.innogysmarthome.internal.client.entity.state.DateTimeState;
17 import org.openhab.binding.innogysmarthome.internal.client.entity.state.DoubleState;
18 import org.openhab.binding.innogysmarthome.internal.client.entity.state.IntegerState;
19 import org.openhab.binding.innogysmarthome.internal.client.entity.state.StringState;
21 import com.google.gson.annotations.SerializedName;
24 * Holds the Capability state.
26 * @author Oliver Kuhl - Initial contribution
31 @SerializedName("absoluteEnergyConsumption")
32 private DoubleState absoluteEnergyConsumptionState;
34 @SerializedName("activeChannel")
35 private StringState activeChannelState;
37 @SerializedName("dimLevel")
38 private IntegerState dimLevelState;
40 @SerializedName("energyConsumptionDayEuro")
41 private DoubleState energyConsumptionDayEuroState;
43 @SerializedName("energyConsumptionDayKWh")
44 private DoubleState energyConsumptionDayKWhState;
46 @SerializedName("energyConsumptionMonthEuro")
47 private DoubleState energyConsumptionMonthEuroState;
49 @SerializedName("energyConsumptionMonthKWh")
50 private DoubleState energyConsumptionMonthKWhState;
52 @SerializedName("energyPerDayInEuro")
53 private DoubleState energyPerDayInEuroState;
55 @SerializedName("energyPerDayInKWh")
56 private DoubleState energyPerDayInKWhState;
58 @SerializedName("energyPerMonthInEuro")
59 private DoubleState energyPerMonthInEuroState;
61 @SerializedName("energyPerMonthInKWh")
62 private DoubleState energyPerMonthInKWhState;
64 @SerializedName("frostWarning")
65 private BooleanState frostWarningState;
67 @SerializedName("humidity")
68 private DoubleState humidityState;
70 @SerializedName("isDay")
71 private BooleanState isDayState;
73 @SerializedName("isOn")
74 private BooleanState isOnState;
76 @SerializedName("isOpen")
77 private BooleanState isOpenState;
79 @SerializedName("isSmokeAlarm")
80 private BooleanState isSmokeAlarmState;
82 @SerializedName("lastKeyPressCounter")
83 private IntegerState lastKeyPressCounterState;
85 @SerializedName("lastPressedButtonIndex")
86 private IntegerState lastPressedButtonIndex;
88 private StringState lastPressedButtonIndexState;
90 @SerializedName("luminance")
91 private DoubleState luminanceState;
93 @SerializedName("moldWarning")
94 private BooleanState moldWarningState;
96 @SerializedName("motionDetectedCount")
97 private IntegerState motionDetectedCountState;
99 @SerializedName("nextSunrise")
100 private DateTimeState nextSunrise;
102 @SerializedName("nextSunset")
103 private DateTimeState nextSunsetState;
105 @SerializedName("nextTimeEvent")
106 private DateTimeState nextTimeEventState;
108 @SerializedName("onState")
109 private BooleanState onState;
111 @SerializedName("operationMode")
112 private StringState operationModeState;
114 @SerializedName("pointTemperature")
115 private DoubleState pointTemperatureState;
117 @SerializedName("powerConsumptionWatt")
118 private DoubleState powerConsumptionWattState;
120 @SerializedName("powerInWatt")
121 private DoubleState powerInWattState;
123 @SerializedName("shutterLevel")
124 private IntegerState shutterLevelState;
126 @SerializedName("supplyValueInCubicMetterPerDay")
127 private DoubleState supplyValueInCubicMetterPerDayState;
129 @SerializedName("supplyValueInCubicMetterPerMonth")
130 private DoubleState supplyValueInCubicMetterPerMonthState;
132 @SerializedName("supplyValueInCurrencyPerDay")
133 private DoubleState supplyValueInCurrencyPerDayState;
135 @SerializedName("supplyValueInCurrencyPerMonth")
136 private DoubleState supplyValueInCurrencyPerMonthState;
138 @SerializedName("supplyValueInLitrePerDay")
139 private DoubleState supplyValueInLitrePerDayState;
141 @SerializedName("supplyValueInLitrePerMonth")
142 private DoubleState supplyValueInLitrePerMonthState;
144 @SerializedName("temperature")
145 private DoubleState temperatureState;
147 @SerializedName("totalEnergy")
148 private DoubleState totalEnergyState;
150 @SerializedName("value")
151 private BooleanState valueState;
153 @SerializedName("valvePosition")
154 private BooleanState valvePositionState;
156 @SerializedName("windowReductionActive")
157 private BooleanState windowReductionActiveState;
160 * @return the absoluteEnergyConsumptionState
162 public DoubleState getAbsoluteEnergyConsumptionState() {
163 return absoluteEnergyConsumptionState;
167 * @param state the absoluteEnergyConsumptionState to set
169 public void setAbsoluteEnergyConsumptionState(DoubleState state) {
170 this.absoluteEnergyConsumptionState = state;
174 * @return the activeChannelState
176 public StringState getActiveChannelState() {
177 return activeChannelState;
181 * @param state the activeChannelState to set
183 public void setActiveChannelState(StringState state) {
184 this.activeChannelState = state;
188 * @return the dimLevelState
190 public IntegerState getDimLevelState() {
191 return dimLevelState;
195 * @param state the dimLevelState to set
197 public void setDimLevelState(IntegerState state) {
198 this.dimLevelState = state;
202 * @return the energyConsumptionDayEuroState
204 public DoubleState getEnergyConsumptionDayEuroState() {
205 return energyConsumptionDayEuroState;
209 * @param state the energyConsumptionDayEuroState to set
211 public void setEnergyConsumptionDayEuroState(DoubleState state) {
212 this.energyConsumptionDayEuroState = state;
216 * @return the energyConsumptionDayKWhState
218 public DoubleState getEnergyConsumptionDayKWhState() {
219 return energyConsumptionDayKWhState;
223 * @param state the energyConsumptionDayKWhState to set
225 public void setEnergyConsumptionDayKWhState(DoubleState state) {
226 this.energyConsumptionDayKWhState = state;
230 * @return the energyConsumptionMonthEuroState
232 public DoubleState getEnergyConsumptionMonthEuroState() {
233 return energyConsumptionMonthEuroState;
237 * @param state the energyConsumptionMonthEuroState to set
239 public void setEnergyConsumptionMonthEuroState(DoubleState state) {
240 this.energyConsumptionMonthEuroState = state;
244 * @return the energyConsumptionMonthKWhState
246 public DoubleState getEnergyConsumptionMonthKWhState() {
247 return energyConsumptionMonthKWhState;
251 * @param state the energyConsumptionMonthKWhState to set
253 public void setEnergyConsumptionMonthKWhState(DoubleState state) {
254 this.energyConsumptionMonthKWhState = state;
258 * @return the energyPerDayInEuroState
260 public DoubleState getEnergyPerDayInEuroState() {
261 return energyPerDayInEuroState;
265 * @param state the energyPerDayInEuroState to set
267 public void setEnergyPerDayInEuroState(DoubleState state) {
268 this.energyPerDayInEuroState = state;
272 * @return the energyPerDayInKWhState
274 public DoubleState getEnergyPerDayInKWhState() {
275 return energyPerDayInKWhState;
279 * @param state the energyPerDayInKWhState to set
281 public void setEnergyPerDayInKWhState(DoubleState state) {
282 this.energyPerDayInKWhState = state;
286 * @return the energyPerMonthInEuroState
288 public DoubleState getEnergyPerMonthInEuroState() {
289 return energyPerMonthInEuroState;
293 * @param state the energyPerMonthInEuroState to set
295 public void setEnergyPerMonthInEuroState(DoubleState state) {
296 this.energyPerMonthInEuroState = state;
300 * @return the energyPerMonthInKWhState
302 public DoubleState getEnergyPerMonthInKWhState() {
303 return energyPerMonthInKWhState;
307 * @param state the energyPerMonthInKWhState to set
309 public void setEnergyPerMonthInKWhState(DoubleState state) {
310 this.energyPerMonthInKWhState = state;
314 * @return the frostWarningState
316 public BooleanState getFrostWarningState() {
317 return frostWarningState;
321 * @param state the frostWarningState to set
323 public void setFrostWarningState(BooleanState state) {
324 this.frostWarningState = state;
328 * @return the humidityState
330 public DoubleState getHumidityState() {
331 return humidityState;
335 * @param state the humidityState to set
337 public void setHumidityState(DoubleState state) {
338 this.humidityState = state;
342 * @return the isDayState
344 public BooleanState getIsDayState() {
349 * @param state the isDayState to set
351 public void setIsDayState(BooleanState state) {
352 this.isDayState = state;
356 * @return the isOnState
358 public BooleanState getIsOnState() {
363 * @param state the isOnState to set
365 public void setIsOnState(BooleanState state) {
366 this.isOnState = state;
370 * @return the isOpenState
372 public BooleanState getIsOpenState() {
377 * @param state the isOpenState to set
379 public void setIsOpenState(BooleanState state) {
380 this.isOpenState = state;
384 * @return the isSmokeAlarmState
386 public BooleanState getIsSmokeAlarmState() {
387 return isSmokeAlarmState;
391 * @param state the isSmokeAlarmState to set
393 public void setIsSmokeAlarmState(BooleanState state) {
394 this.isSmokeAlarmState = state;
398 * @return the lastKeyPressCounterState
400 public IntegerState getLastKeyPressCounterState() {
401 return lastKeyPressCounterState;
405 * @param state the lastKeyPressCounterState to set
407 public void setLastKeyPressCounterState(IntegerState state) {
408 this.lastKeyPressCounterState = state;
412 * @return the lastPressedButtonIndex
414 public IntegerState getLastPressedButtonIndex() {
415 return lastPressedButtonIndex;
419 * @param state the lastPressedButtonIndex to set
421 public void setLastPressedButtonIndex(IntegerState state) {
422 this.lastPressedButtonIndex = state;
425 public StringState getLastKeyPressType() {
426 if (lastPressedButtonIndexState == null) {
427 lastPressedButtonIndexState = new StringState();
429 return lastPressedButtonIndexState;
432 public void setLastKeyPressType(StringState lastPressedButtonIndexState) {
433 this.lastPressedButtonIndexState = lastPressedButtonIndexState;
437 * @return the luminanceState
439 public DoubleState getLuminanceState() {
440 return luminanceState;
444 * @param state the luminanceState to set
446 public void setLuminanceState(DoubleState state) {
447 this.luminanceState = state;
451 * @return the moldWarningState
453 public BooleanState getMoldWarningState() {
454 return moldWarningState;
458 * @param state the moldWarningState to set
460 public void setMoldWarningState(BooleanState state) {
461 this.moldWarningState = state;
465 * @return the motionDetectedCountState
467 public IntegerState getMotionDetectedCountState() {
468 return motionDetectedCountState;
472 * @param state the motionDetectedCountState to set
474 public void setMotionDetectedCountState(IntegerState state) {
475 this.motionDetectedCountState = state;
479 * @return the nextSunrise
481 public DateTimeState getNextSunrise() {
486 * @param state the nextSunrise to set
488 public void setNextSunrise(DateTimeState state) {
489 this.nextSunrise = state;
493 * @return the nextSunsetState
495 public DateTimeState getNextSunsetState() {
496 return nextSunsetState;
500 * @param state the nextSunsetState to set
502 public void setNextSunsetState(DateTimeState state) {
503 this.nextSunsetState = state;
507 * @return the nextTimeEventState
509 public DateTimeState getNextTimeEventState() {
510 return nextTimeEventState;
514 * @param state the nextTimeEventState to set
516 public void setNextTimeEventState(DateTimeState state) {
517 this.nextTimeEventState = state;
521 * @return the onState
523 public BooleanState getOnState() {
528 * @param state the onState to set
530 public void setOnState(BooleanState state) {
531 this.onState = state;
535 * @return the operationModeState
537 public StringState getOperationModeState() {
538 return operationModeState;
542 * @param state the operationModeState to set
544 public void setOperationModeState(StringState state) {
545 this.operationModeState = state;
549 * @return the pointTemperatureState
551 public DoubleState getPointTemperatureState() {
552 return pointTemperatureState;
556 * @param state the pointTemperatureState to set
558 public void setPointTemperatureState(DoubleState state) {
559 this.pointTemperatureState = state;
563 * @return the powerConsumptionWattState
565 public DoubleState getPowerConsumptionWattState() {
566 return powerConsumptionWattState;
570 * @param state the powerConsumptionWattState to set
572 public void setPowerConsumptionWattState(DoubleState state) {
573 this.powerConsumptionWattState = state;
577 * @return the powerInWattState
579 public DoubleState getPowerInWattState() {
580 return powerInWattState;
584 * @param state the powerInWattState to set
586 public void setPowerInWattState(DoubleState state) {
587 this.powerInWattState = state;
591 * @return the shutterLevelState
593 public IntegerState getShutterLevelState() {
594 return shutterLevelState;
598 * @param state the shutterLevelState to set
600 public void setShutterLevelState(IntegerState state) {
601 this.shutterLevelState = state;
605 * @return the supplyValueInCubicMetterPerDayState
607 public DoubleState getSupplyValueInCubicMetterPerDayState() {
608 return supplyValueInCubicMetterPerDayState;
612 * @param state the supplyValueInCubicMetterPerDayState to set
614 public void setSupplyValueInCubicMetterPerDayState(DoubleState state) {
615 this.supplyValueInCubicMetterPerDayState = state;
619 * @return the supplyValueInCubicMetterPerMonthState
621 public DoubleState getSupplyValueInCubicMetterPerMonthState() {
622 return supplyValueInCubicMetterPerMonthState;
626 * @param state the supplyValueInCubicMetterPerMonthState to set
628 public void setSupplyValueInCubicMetterPerMonthState(DoubleState state) {
629 this.supplyValueInCubicMetterPerMonthState = state;
633 * @return the supplyValueInCurrencyPerDayState
635 public DoubleState getSupplyValueInCurrencyPerDayState() {
636 return supplyValueInCurrencyPerDayState;
640 * @param state the supplyValueInCurrencyPerDayState to set
642 public void setSupplyValueInCurrencyPerDayState(DoubleState state) {
643 this.supplyValueInCurrencyPerDayState = state;
647 * @return the supplyValueInCurrencyPerMonthState
649 public DoubleState getSupplyValueInCurrencyPerMonthState() {
650 return supplyValueInCurrencyPerMonthState;
654 * @param state the supplyValueInCurrencyPerMonthState to set
656 public void setSupplyValueInCurrencyPerMonthState(DoubleState state) {
657 this.supplyValueInCurrencyPerMonthState = state;
661 * @return the supplyValueInLitrePerDayState
663 public DoubleState getSupplyValueInLitrePerDayState() {
664 return supplyValueInLitrePerDayState;
668 * @param state the supplyValueInLitrePerDayState to set
670 public void setSupplyValueInLitrePerDayState(DoubleState state) {
671 this.supplyValueInLitrePerDayState = state;
675 * @return the supplyValueInLitrePerMonthState
677 public DoubleState getSupplyValueInLitrePerMonthState() {
678 return supplyValueInLitrePerMonthState;
682 * @param state the supplyValueInLitrePerMonthState to set
684 public void setSupplyValueInLitrePerMonthState(DoubleState state) {
685 this.supplyValueInLitrePerMonthState = state;
689 * @return the temperatureState
691 public DoubleState getTemperatureState() {
692 return temperatureState;
696 * @param state the temperatureState to set
698 public void setTemperatureState(DoubleState state) {
699 this.temperatureState = state;
703 * @return the totalEnergyState
705 public DoubleState getTotalEnergyState() {
706 return totalEnergyState;
710 * @param state the totalEnergyState to set
712 public void setTotalEnergyState(DoubleState state) {
713 this.totalEnergyState = state;
717 * @return the valueState
719 public BooleanState getValueState() {
724 * @param state the valueState to set
726 public void setValueState(BooleanState state) {
727 this.valueState = state;
731 * @return the valvePositionState
733 public BooleanState getValvePositionState() {
734 return valvePositionState;
738 * @param state the valvePositionState to set
740 public void setValvePositionState(BooleanState state) {
741 this.valvePositionState = state;
745 * @return the windowReductionActiveState
747 public BooleanState getWindowReductionActiveState() {
748 return windowReductionActiveState;
752 * @param state the windowReductionActiveState to set
754 public void setWindowReductionActiveState(BooleanState state) {
755 this.windowReductionActiveState = state;