map RC35 thermostat modes nicely for HA

This commit is contained in:
proddy
2019-11-10 10:19:45 +01:00
parent 8e66fa81e3
commit f10999be89

View File

@@ -11,7 +11,7 @@
current_temperature_topic: "home/ems-esp/thermostat_data"
temperature_state_topic: "home/ems-esp/thermostat_data"
mode_state_template: "{% if value_json.hc1.mode == 'manual' %} heat {% else %} {{value_json.hc1.mode}} {% endif %}"
mode_state_template: "{% if value_json_hc1.mode in ['manual', 'day'] %}heat{% elif value_json_hc1.mode in ['night', 'off'] %}off{% else %}auto{% endif %}"
current_temperature_template: "{{ value_json.hc1.currtemp }}"
temperature_state_template: "{{ value_json.hc1.seltemp }}"