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.device;
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 state of the Device.
26 * @author Oliver Kuhl - Initial contribution
30 /** Standard device states */
31 @SerializedName("deviceInclusionState")
32 private StringState deviceInclusionState;
34 @SerializedName("deviceConfigurationState")
35 private StringState deviceConfigurationState;
37 private BooleanState isReachable;
39 private StringState updateState;
41 private StringState firmwareVersion;
43 @SerializedName("WHRating")
44 private DoubleState wHRating;
46 /** SHC device states */
47 // Removed updateAvailable because it is different between version 1 and 2 devices and not used anyway
48 // Related to openhab-addons #6613
49 // private StringState updateAvailable
51 private DateTimeState lastReboot;
53 private IntegerState memoryLoad;
55 @SerializedName("CPULoad")
56 private IntegerState cpuLoad;
58 @SerializedName("LBDongleAttached")
59 private BooleanState lBDongleAttached;
61 @SerializedName("MBusDongleAttached")
62 private BooleanState mBusDongleAttached;
64 private IntegerState configVersion;
66 @SerializedName("OSState")
67 private StringState oSState;
69 private IntegerState wifiSignalStrength;
71 private StringState ethIpAddress;
73 private StringState wifiIpAddress;
75 private StringState ethMacAddress;
77 private StringState wifiMacAddress;
79 private StringState inUseAdapter;
81 private BooleanState innogyLayerAttached;
83 private BooleanState discoveryActive;
85 private StringState operationStatus;
87 private DoubleState currentUtcOffset;
89 private DoubleState cpuUsage;
91 private DoubleState diskUsage;
93 private DoubleState memoryUsage;
96 * @return the deviceInclusionState
98 public StringState getDeviceInclusionState() {
99 return deviceInclusionState;
103 * @param deviceInclusionState the deviceInclusionState to set
105 public void setDeviceInclusionState(StringState deviceInclusionState) {
106 this.deviceInclusionState = deviceInclusionState;
110 * @return the deviceConfigurationState
112 public StringState getDeviceConfigurationState() {
113 return deviceConfigurationState;
117 * @param deviceConfigurationState the deviceConfigurationState to set
119 public void setDeviceConfigurationState(StringState deviceConfigurationState) {
120 this.deviceConfigurationState = deviceConfigurationState;
124 * @return the isReachable
126 public BooleanState getIsReachable() {
131 * @param isReachable the isReachable to set
133 public void setIsReachable(BooleanState isReachable) {
134 this.isReachable = isReachable;
138 * @return the updateState
140 public StringState getUpdateState() {
145 * @param updateState the updateState to set
147 public void setUpdateState(StringState updateState) {
148 this.updateState = updateState;
152 * @return the firmwareVersion
154 public StringState getFirmwareVersion() {
155 return firmwareVersion;
159 * @param firmwareVersion the firmwareVersion to set
161 public void setFirmwareVersion(StringState firmwareVersion) {
162 this.firmwareVersion = firmwareVersion;
166 * @return the wHRating
168 public DoubleState getWHRating() {
173 * @param wHRating the wHRating to set
175 public void setWHRating(DoubleState wHRating) {
176 this.wHRating = wHRating;
180 * @return the lastReboot
182 public DateTimeState getLastReboot() {
187 * @param lastReboot the lastReboot to set
189 public void setLastReboot(DateTimeState lastReboot) {
190 this.lastReboot = lastReboot;
194 * @return the memoryLoad
196 public IntegerState getMemoryLoad() {
201 * @param memoryLoad the memoryLoad to set
203 public void setMemoryLoad(IntegerState memoryLoad) {
204 this.memoryLoad = memoryLoad;
208 * @return the cPULoad
210 public IntegerState getCPULoad() {
215 * @param cpuLoad the cPULoad to set
217 public void setCPULoad(IntegerState cpuLoad) {
218 this.cpuLoad = cpuLoad;
222 * @return the lBDongleAttached
224 public BooleanState getLBDongleAttached() {
225 return lBDongleAttached;
229 * @param lBDongleAttached the lBDongleAttached to set
231 public void setLBDongleAttached(BooleanState lBDongleAttached) {
232 this.lBDongleAttached = lBDongleAttached;
236 * @return the mBusDongleAttached
238 public BooleanState getMBusDongleAttached() {
239 return mBusDongleAttached;
243 * @param mBusDongleAttached the mBusDongleAttached to set
245 public void setMBusDongleAttached(BooleanState mBusDongleAttached) {
246 this.mBusDongleAttached = mBusDongleAttached;
250 * @return the configVersion
252 public IntegerState getConfigVersion() {
253 return configVersion;
257 * @param configVersion the configVersion to set
259 public void setConfigVersion(IntegerState configVersion) {
260 this.configVersion = configVersion;
264 * @return the oSState
266 public StringState getOSState() {
271 * @param oSState the oSState to set
273 public void setOSState(StringState oSState) {
274 this.oSState = oSState;
278 * @return the wifiSignalStrength
280 public IntegerState getWifiSignalStrength() {
281 return wifiSignalStrength;
285 * @param wifiSignalStrength the wifiSignalStrength to set
287 public void setWifiSignalStrength(IntegerState wifiSignalStrength) {
288 this.wifiSignalStrength = wifiSignalStrength;
292 * @return the ethIpAddress
294 public StringState getEthIpAddress() {
299 * @param ethIpAddress the ethIpAddress to set
301 public void setEthIpAddress(StringState ethIpAddress) {
302 this.ethIpAddress = ethIpAddress;
306 * @return the wifiIpAddress
308 public StringState getWifiIpAddress() {
309 return wifiIpAddress;
313 * @param wifiIpAddress the wifiIpAddress to set
315 public void setWifiIpAddress(StringState wifiIpAddress) {
316 this.wifiIpAddress = wifiIpAddress;
320 * @return the ethMacAddress
322 public StringState getEthMacAddress() {
323 return ethMacAddress;
327 * @param ethMacAddress the ethMacAddress to set
329 public void setEthMacAddress(StringState ethMacAddress) {
330 this.ethMacAddress = ethMacAddress;
334 * @return the wifiMacAddress
336 public StringState getWifiMacAddress() {
337 return wifiMacAddress;
341 * @param wifiMacAddress the wifiMacAddress to set
343 public void setWifiMacAddress(StringState wifiMacAddress) {
344 this.wifiMacAddress = wifiMacAddress;
348 * @return the inUseAdapter
350 public StringState getInUseAdapter() {
355 * @param inUseAdapter the inUseAdapter to set
357 public void setInUseAdapter(StringState inUseAdapter) {
358 this.inUseAdapter = inUseAdapter;
362 * @return the innogyLayerAttached
364 public BooleanState getInnogyLayerAttached() {
365 return innogyLayerAttached;
369 * @param innogyLayerAttached the innogyLayerAttached to set
371 public void setInnogyLayerAttached(BooleanState innogyLayerAttached) {
372 this.innogyLayerAttached = innogyLayerAttached;
376 * @return the discoveryActive
378 public BooleanState getDiscoveryActive() {
379 return discoveryActive;
383 * @param discoveryActive the discoveryActive to set
385 public void setDiscoveryActive(BooleanState discoveryActive) {
386 this.discoveryActive = discoveryActive;
390 * @return the operationStatus
392 public StringState getOperationStatus() {
393 return operationStatus;
397 * @param operationStatus the operationStatus to set
399 public void setOperationStatus(StringState operationStatus) {
400 this.operationStatus = operationStatus;
404 * @return the currentUtcOffset
406 public DoubleState getCurrentUtcOffset() {
407 return currentUtcOffset;
411 * @param currentUtcOffset the currentUtcOffset to set
413 public void setCurrentUtcOffset(DoubleState currentUtcOffset) {
414 this.currentUtcOffset = currentUtcOffset;
418 * @return the cpuUsage
420 public DoubleState getCpuUsage() {
425 * @param cpuUsage the cpuUsage to set
427 public void setCpuUsage(DoubleState cpuUsage) {
428 this.cpuUsage = cpuUsage;
432 * @return the diskUsage
434 public DoubleState getDiskUsage() {
439 * @param diskUsage the diskUsage to set
441 public void setDiskUsage(DoubleState diskUsage) {
442 this.diskUsage = diskUsage;
446 * @return the memoryUsage
448 public DoubleState getMemoryUsage() {
453 * @param memoryUsage the memoryUsage to set
455 public void setMemoryUsage(DoubleState memoryUsage) {
456 this.memoryUsage = memoryUsage;