This commit is contained in:
Johannes
2022-06-06 14:46:45 +02:00
parent 6a46e0e1e8
commit f09cb110cb
8 changed files with 13 additions and 4 deletions

View File

@@ -299,6 +299,11 @@ class LuiController(object):
if button_type == "tempUpd":
temp = int(value)/10
self._ha_api.get_entity(entity_id).call_service("set_temperature", temperature=temp)
if button_type == "tempUpdHighLow":
value = value.split("|")
temp_high = int(value[0])/10
temp_low = int(value[1])/10
self._ha_api.get_entity(entity_id).call_service("set_temperature", target_temp_high=temp_high, target_temp_low=temp_low)
if button_type == "hvac_action":
self._ha_api.get_entity(entity_id).call_service("set_hvac_mode", hvac_mode=value)