2 * Copyright (c) 2010-2022 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.event;
15 import com.google.gson.annotations.SerializedName;
18 * @author Oliver Kuhl - Initial contribution
21 public class EventProperties {
22 /** SHC Properties **/
23 private Integer configVersion;
25 private Boolean isConnected;
27 /** Writable capability properties **/
28 private Integer dimLevel;
30 private Boolean onState;
32 private String operationMode;
34 private Double pointTemperature;
36 private Integer shutterLevel;
38 private Boolean value;
40 /** readable capability properties **/
41 private Double absoluteEnergyConsumption;
43 private Double energyConsumptionDayEuro;
45 private Double energyConsumptionDayKWh;
47 private Double energyConsumptionMonthEuro;
49 private Double energyConsumptionMonthKWh;
51 private Double energyPerDayInEuro;
53 private Double energyPerDayInKWh;
55 private Double energyPerMonthInEuro;
57 private Double energyPerMonthInKWh;
59 private Boolean frostWarning;
61 private Double humidity;
63 private Boolean isOpen;
65 private Boolean isSmokeAlarm;
67 private Integer lastKeyPressCounter;
69 private Integer lastPressedButtonIndex;
74 @SerializedName("type")
75 private String lastKeyPressType;
77 private Double luminance;
79 private Boolean moldWarning;
81 private Integer motionDetectedCount;
83 private Double powerConsumptionWatt;
85 private Double powerInWatt;
87 private Double temperature;
89 private Double totalEnergy;
91 private Boolean windowReductionActive;
93 private Double cpuUsage;
95 private Double diskUsage;
97 private Double memoryUsage;
100 * @return the configurationVersion
102 public Integer getConfigVersion() {
103 return configVersion;
107 * @param configVersion the configurationVersion to set
109 public void setConfigVersion(final Integer configVersion) {
110 this.configVersion = configVersion;
114 * @return the isConnected
116 public Boolean getIsConnected() {
121 * @param isConnected the isConnected to set
123 public void setIsConnected(final Boolean isConnected) {
124 this.isConnected = isConnected;
128 * @return the dimLevel
130 public Integer getDimLevel() {
135 * @param dimLevel the dimLevel to set
137 public void setDimLevel(final Integer dimLevel) {
138 this.dimLevel = dimLevel;
142 * @return the onState
144 public Boolean getOnState() {
149 * @param onState the onState to set
151 public void setOnState(final Boolean onState) {
152 this.onState = onState;
156 * @return the operationMode
158 public String getOperationMode() {
159 return operationMode;
163 * @param operationMode the operationMode to set
165 public void setOperationMode(final String operationMode) {
166 this.operationMode = operationMode;
170 * @return the pointTemperature
172 public Double getPointTemperature() {
173 return pointTemperature;
177 * @param pointTemperature the pointTemperature to set
179 public void setPointTemperature(final Double pointTemperature) {
180 this.pointTemperature = pointTemperature;
184 * @return the shutterLevel
186 public Integer getShutterLevel() {
191 * @param shutterLevel the shutterLevel to set
193 public void setShutterLevel(final Integer shutterLevel) {
194 this.shutterLevel = shutterLevel;
200 public Boolean getValue() {
205 * @param value the value to set
207 public void setValue(final Boolean value) {
212 * @return the absoluteEnergyConsumption
214 public Double getAbsoluteEnergyConsumption() {
215 return absoluteEnergyConsumption;
219 * @param absoluteEnergyConsumption the absoluteEnergyConsumption to set
221 public void setAbsoluteEnergyConsumption(final Double absoluteEnergyConsumption) {
222 this.absoluteEnergyConsumption = absoluteEnergyConsumption;
226 * @return the energyConsumptionDayEuro
228 public Double getEnergyConsumptionDayEuro() {
229 return energyConsumptionDayEuro;
233 * @param energyConsumptionDayEuro the energyConsumptionDayEuro to set
235 public void setEnergyConsumptionDayEuro(final Double energyConsumptionDayEuro) {
236 this.energyConsumptionDayEuro = energyConsumptionDayEuro;
240 * @return the energyConsumptionDayKWh
242 public Double getEnergyConsumptionDayKWh() {
243 return energyConsumptionDayKWh;
247 * @param energyConsumptionDayKWh the energyConsumptionDayKWh to set
249 public void setEnergyConsumptionDayKWh(final Double energyConsumptionDayKWh) {
250 this.energyConsumptionDayKWh = energyConsumptionDayKWh;
254 * @return the energyConsumptionMonthEuro
256 public Double getEnergyConsumptionMonthEuro() {
257 return energyConsumptionMonthEuro;
261 * @param energyConsumptionMonthEuro the energyConsumptionMonthEuro to set
263 public void setEnergyConsumptionMonthEuro(final Double energyConsumptionMonthEuro) {
264 this.energyConsumptionMonthEuro = energyConsumptionMonthEuro;
268 * @return the energyConsumptionMonthKWh
270 public Double getEnergyConsumptionMonthKWh() {
271 return energyConsumptionMonthKWh;
275 * @param energyConsumptionMonthKWh the energyConsumptionMonthKWh to set
277 public void setEnergyConsumptionMonthKWh(final Double energyConsumptionMonthKWh) {
278 this.energyConsumptionMonthKWh = energyConsumptionMonthKWh;
282 * @return the energyPerDayInEuro
284 public Double getEnergyPerDayInEuro() {
285 return energyPerDayInEuro;
289 * @param energyPerDayInEuro the energyPerDayInEuro to set
291 public void setEnergyPerDayInEuro(final Double energyPerDayInEuro) {
292 this.energyPerDayInEuro = energyPerDayInEuro;
296 * @return the energyPerDayInKWh
298 public Double getEnergyPerDayInKWh() {
299 return energyPerDayInKWh;
303 * @param energyPerDayInKWh the energyPerDayInKWh to set
305 public void setEnergyPerDayInKWh(final Double energyPerDayInKWh) {
306 this.energyPerDayInKWh = energyPerDayInKWh;
310 * @return the energyPerMonthInEuro
312 public Double getEnergyPerMonthInEuro() {
313 return energyPerMonthInEuro;
317 * @param energyPerMonthInEuro the energyPerMonthInEuro to set
319 public void setEnergyPerMonthInEuro(final Double energyPerMonthInEuro) {
320 this.energyPerMonthInEuro = energyPerMonthInEuro;
324 * @return the energyPerMonthInKWh
326 public Double getEnergyPerMonthInKWh() {
327 return energyPerMonthInKWh;
331 * @param energyPerMonthInKWh the energyPerMonthInKWh to set
333 public void setEnergyPerMonthInKWh(final Double energyPerMonthInKWh) {
334 this.energyPerMonthInKWh = energyPerMonthInKWh;
338 * @return the frostWarning
340 public Boolean getFrostWarning() {
345 * @param frostWarning the frostWarning to set
347 public void setFrostWarning(final Boolean frostWarning) {
348 this.frostWarning = frostWarning;
352 * @return the humidity
354 public Double getHumidity() {
359 * @param humidity the humidity to set
361 public void setHumidity(final Double humidity) {
362 this.humidity = humidity;
368 public Boolean getIsOpen() {
373 * @param isOpen the isOpen to set
375 public void setIsOpen(final Boolean isOpen) {
376 this.isOpen = isOpen;
380 * @return the isSmokeAlarm
382 public Boolean getIsSmokeAlarm() {
387 * @param isSmokeAlarm the isSmokeAlarm to set
389 public void setIsSmokeAlarm(final Boolean isSmokeAlarm) {
390 this.isSmokeAlarm = isSmokeAlarm;
394 * @return the lastKeyPressCounter
396 public Integer getLastKeyPressCounter() {
397 return lastKeyPressCounter;
401 * @param lastKeyPressCounter the lastKeyPressCounter to set
403 public void setLastKeyPressCounter(final Integer lastKeyPressCounter) {
404 this.lastKeyPressCounter = lastKeyPressCounter;
408 * @return the lastPressedButtonIndex
410 public Integer getLastPressedButtonIndex() {
411 return lastPressedButtonIndex;
415 * @param lastPressedButtonIndex the lastPressedButtonIndex to set
417 public void setLastPressedButtonIndex(final Integer lastPressedButtonIndex) {
418 this.lastPressedButtonIndex = lastPressedButtonIndex;
421 public String getLastKeyPressType() {
422 return lastKeyPressType;
425 public void setLastKeyPressType(final String lastKeyPressType) {
426 this.lastKeyPressType = lastKeyPressType;
430 * @return the luminance
432 public Double getLuminance() {
437 * @param luminance the luminance to set
439 public void setLuminance(final Double luminance) {
440 this.luminance = luminance;
444 * @return the moldWarning
446 public Boolean getMoldWarning() {
451 * @param moldWarning the moldWarning to set
453 public void setMoldWarning(final Boolean moldWarning) {
454 this.moldWarning = moldWarning;
458 * @return the motionDetectedCount
460 public Integer getMotionDetectedCount() {
461 return motionDetectedCount;
465 * @param motionDetectedCount the motionDetectedCount to set
467 public void setMotionDetectedCount(final Integer motionDetectedCount) {
468 this.motionDetectedCount = motionDetectedCount;
472 * @return the powerConsumptionWatt
474 public Double getPowerConsumptionWatt() {
475 return powerConsumptionWatt;
479 * @param powerConsumptionWatt the powerConsumptionWatt to set
481 public void setPowerConsumptionWatt(final Double powerConsumptionWatt) {
482 this.powerConsumptionWatt = powerConsumptionWatt;
486 * @return the powerInWatt
488 public Double getPowerInWatt() {
493 * @param powerInWatt the powerInWatt to set
495 public void setPowerInWatt(final Double powerInWatt) {
496 this.powerInWatt = powerInWatt;
500 * @return the temperature
502 public Double getTemperature() {
507 * @param temperature the temperature to set
509 public void setTemperature(final Double temperature) {
510 this.temperature = temperature;
514 * @return the totalEnergy
516 public Double getTotalEnergy() {
521 * @param totalEnergy the totalEnergy to set
523 public void setTotalEnergy(final Double totalEnergy) {
524 this.totalEnergy = totalEnergy;
528 * @return the windowReductionActive
530 public Boolean getWindowReductionActive() {
531 return windowReductionActive;
535 * @param windowReductionActive the windowReductionActive to set
537 public void setWindowReductionActive(final Boolean windowReductionActive) {
538 this.windowReductionActive = windowReductionActive;
542 * @param cpuUsage the cpuUsage to set
544 public void setCpuUsage(final Double cpuUsage) {
545 this.cpuUsage = cpuUsage;
549 * @return the cpuUsage
551 public Double getCpuUsage() {
556 * @param diskUsage the diskUsage to set
558 public void setDiskUsage(final Double diskUsage) {
559 this.diskUsage = diskUsage;
563 * @return the diskUsage
565 public Double getDiskUsage() {
570 * @param memoryUsage the memoryUsage to set
572 public void setMemoryUsage(final Double memoryUsage) {
573 this.memoryUsage = memoryUsage;
577 * @return the memoryUsage
579 public Double getMemoryUsage() {