We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a19eae commit ad1ac0dCopy full SHA for ad1ac0d
plugwise/data.py
@@ -67,7 +67,10 @@ def _update_gw_devices(self) -> None:
67
mac_list
68
and "battery_state" in device["binary_sensors"]
69
and device["zigbee_mac_address"] in mac_list
70
- and device["sensors"]["battery"] < 15
+ and (
71
+ (device["dev_class"] in ("thermo_sensor", "thermostatic_radiator_valve") and device["sensors"]["battery"] < 30)
72
+ or (device["dev_class"] in ("zone_thermometer", "zone_thermostat") and device["sensors"]["battery"] < 15)
73
+ )
74
)
75
if is_battery_low:
76
device["binary_sensors"]["battery_state"] = True
0 commit comments