mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 00:39:50 +03:00
fix json for thermostat
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
- "auto"
|
- "auto"
|
||||||
- "heat"
|
- "heat"
|
||||||
- "off"
|
- "off"
|
||||||
|
|
||||||
mode_command_topic: "home/ems-esp/thermostat_cmd_mode1"
|
mode_command_topic: "home/ems-esp/thermostat_cmd_mode1"
|
||||||
temperature_command_topic: "home/ems-esp/thermostat_cmd_temp1"
|
temperature_command_topic: "home/ems-esp/thermostat_cmd_temp1"
|
||||||
|
|
||||||
@@ -11,7 +12,7 @@
|
|||||||
current_temperature_topic: "home/ems-esp/thermostat_data"
|
current_temperature_topic: "home/ems-esp/thermostat_data"
|
||||||
temperature_state_topic: "home/ems-esp/thermostat_data"
|
temperature_state_topic: "home/ems-esp/thermostat_data"
|
||||||
|
|
||||||
mode_state_template: "{% if value_json_hc1.mode in ['manual', 'day'] %}heat{% elif value_json_hc1.mode in ['night', 'off'] %}off{% else %}auto{% 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 }}"
|
current_temperature_template: "{{ value_json.hc1.currtemp }}"
|
||||||
temperature_state_template: "{{ value_json.hc1.seltemp }}"
|
temperature_state_template: "{{ value_json.hc1.seltemp }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user