diff --git a/pyintesishome/intesisbase.py b/pyintesishome/intesisbase.py index 526d27b..9b8c560 100644 --- a/pyintesishome/intesisbase.py +++ b/pyintesishome/intesisbase.py @@ -452,6 +452,18 @@ def get_horizontal_swing(self, device_id) -> str: """Public method returns the current horizontal vane setting.""" swing = self.get_device_property(device_id, "hvane") return swing + + def get_model(self, device_id) -> str: + """Public method returns the device model.""" + if "model" in self._devices[str(device_id)]: + return self._devices[str(device_id)]["model"] + return None + + def get_fw_version(self, device_id) -> str: + """Public method returns the firmware version.""" + if "fw_version" in self._devices[str(device_id)]: + return self._devices[str(device_id)]["fw_version"] + return None def get_error(self, device_id) -> str: """Public method returns the current error code + description.""" diff --git a/pyintesishome/intesishomelocal.py b/pyintesishome/intesishomelocal.py index 8c63067..6821544 100644 --- a/pyintesishome/intesishomelocal.py +++ b/pyintesishome/intesishomelocal.py @@ -272,6 +272,7 @@ async def poll_status(self, sendcallback=False): "name": info.get("ownSSID"), "widgets": [], "model": info.get("deviceModel"), + "fw_version": info.get("wlanFwVersion") } await self.get_datapoints()