diff --git a/lib/extension/homeassistant.js b/lib/extension/homeassistant.js index c3ddde58..273e6bff 100644 --- a/lib/extension/homeassistant.js +++ b/lib/extension/homeassistant.js @@ -696,7 +696,9 @@ const thermostat = (minTemp=7, maxTemp=30, temperatureStateProperty='occupied_he temperature_command_topic: temperatureStateProperty, temp_step: tempStep, action_topic: true, - action_template: '{{ value_json.operation }}', + action_template: + '{% set values = {\'idle\':\'off\',\'heat\':\'heating\',\'cool\':\'cooling\',\'fan only\':\'fan\'}'+ + ' %}{{ values[value_json.running_state] }}', }, }; }; @@ -1247,7 +1249,7 @@ const mapping = { 'TH1124ZB': [thermostat()], 'TH1400ZB': [thermostat()], 'TH1500ZB': [thermostat()], - 'Zen-01-W': [thermostat()], + 'Zen-01-W': [thermostat(10, 30, 'occupied_heating_setpoint', 0.5)], '9290022166': [cfg.light_brightness_colortemp_colorxy], 'PM-C140-ZB': [cfg.sensor_power, cfg.switch], 'PM-B530-ZB': [cfg.sensor_power, cfg.switch],