mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-09 09:19:51 +03:00
thermostat mqtt is now json. removed 'low' setting in thermostat mode
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
action:
|
||||
service: mqtt.publish
|
||||
data_template:
|
||||
topic: 'home/boiler/thermostat_temp'
|
||||
topic: 'home/boiler/thermostat_cmd_temp'
|
||||
payload: >
|
||||
{{ states.input_number.thermostat_temp.state }}
|
||||
|
||||
|
||||
@@ -1,11 +1,20 @@
|
||||
- platform: mqtt
|
||||
- platform: mqtt
|
||||
name: Thermostat
|
||||
modes:
|
||||
- low
|
||||
- manual
|
||||
- auto
|
||||
mode_state_topic: "home/boiler/thermostat_mode"
|
||||
temperature_command_topic: "home/boiler/thermostat_temp"
|
||||
temperature_state_topic: "home/boiler/thermostat_seltemp"
|
||||
current_temperature_topic: "home/boiler/thermostat_currtemp"
|
||||
|
||||
mode_state_topic: "home/boiler/thermostat_data"
|
||||
current_temperature_topic: "home/boiler/thermostat_data"
|
||||
temperature_state_topic: "home/boiler/thermostat_data"
|
||||
|
||||
temperature_command_topic: "home/boiler/thermostat_cmd_temp"
|
||||
mode_command_topic: "home/boiler/thermostat_cmd_mode"
|
||||
|
||||
mode_state_template: "{{ value_json.thermostat_mode }}"
|
||||
current_temperature_template: "{{ value_json.thermostat_currtemp }}"
|
||||
temperature_state_template: "{{ value_json.thermostat_seltemp }}"
|
||||
|
||||
temp_step: 0.5
|
||||
|
||||
|
||||
@@ -1,16 +1,19 @@
|
||||
- platform: mqtt
|
||||
state_topic: 'home/boiler/thermostat_currtemp'
|
||||
state_topic: 'home/boiler/thermostat_data'
|
||||
name: 'Current Room Temperature'
|
||||
unit_of_measurement: '°C'
|
||||
value_template: "{{ value_json.thermostat_currtemp }}"
|
||||
|
||||
- platform: mqtt
|
||||
state_topic: 'home/boiler/thermostat_seltemp'
|
||||
state_topic: 'home/boiler/thermostat_data'
|
||||
name: 'Current Set Temperature'
|
||||
unit_of_measurement: '°C'
|
||||
value_template: "{{ value_json.thermostat_seltemp }}"
|
||||
|
||||
- platform: mqtt
|
||||
state_topic: 'home/boiler/thermostat_mode'
|
||||
state_topic: 'home/boiler/thermostat_data'
|
||||
name: 'Current Mode'
|
||||
value_template: "{{ value_json.thermostat_mode }}"
|
||||
|
||||
# last time boiler was started
|
||||
- platform: template
|
||||
@@ -22,8 +25,6 @@
|
||||
state_topic: 'home/boiler/showertime'
|
||||
name: 'Last shower duration'
|
||||
force_update: true
|
||||
# unit_of_measurement: "minutes"
|
||||
# value_template: '{{ states("sensor.last_shower_duration") | float / 60}}'
|
||||
|
||||
- platform: mqtt
|
||||
state_topic: 'home/boiler/boiler_data'
|
||||
|
||||
Reference in New Issue
Block a user