Skip to content

Commit 6434814

Browse files
committed
fix(tion): fix heating detection
To be sure that heating is on we should check that: * heater is on (breezer may heat) * out_temp > in_temp (something heat air) * in_temp is more thant 3 degree awy from target temperature (some internal breezer logic may be missed here, it may be not only one condition) Fix #32
1 parent eddd985 commit 6434814

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tion_btle/tion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def __detect_heating_state(self,
217217
if heater == "off":
218218
self.heating = "off"
219219
else:
220-
if in_temp < target_temp and out_temp - target_temp < 3:
220+
if target_temp - in_temp > 3 and out_temp > in_temp:
221221
self.heating = "on"
222222
else:
223223
self.heating = "off"

0 commit comments

Comments
 (0)