Fix Netatmo climate boost/heat event handling (#38923)
* Fix boost event handling * Replace strings with vars
This commit is contained in:
parent
71a03c8ca5
commit
decf3d320b
1 changed files with 4 additions and 1 deletions
|
@ -261,8 +261,11 @@ class NetatmoThermostat(NetatmoBase, ClimateEntity):
|
||||||
for room in home["rooms"]:
|
for room in home["rooms"]:
|
||||||
if data["event_type"] == EVENT_TYPE_SET_POINT:
|
if data["event_type"] == EVENT_TYPE_SET_POINT:
|
||||||
if self._id == room["id"]:
|
if self._id == room["id"]:
|
||||||
if room["therm_setpoint_mode"] == "off":
|
if room["therm_setpoint_mode"] == STATE_NETATMO_OFF:
|
||||||
self._hvac_mode = HVAC_MODE_OFF
|
self._hvac_mode = HVAC_MODE_OFF
|
||||||
|
elif room["therm_setpoint_mode"] == STATE_NETATMO_MAX:
|
||||||
|
self._hvac_mode = HVAC_MODE_HEAT
|
||||||
|
self._target_temperature = DEFAULT_MAX_TEMP
|
||||||
else:
|
else:
|
||||||
self._target_temperature = room["therm_setpoint_temperature"]
|
self._target_temperature = room["therm_setpoint_temperature"]
|
||||||
self.async_write_ha_state()
|
self.async_write_ha_state()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue