thermostat mqtt is now json. removed 'low' setting in thermostat mode

This commit is contained in:
proddy
2018-12-06 18:37:38 +01:00
parent 28197bf7b0
commit 357d2a56ad
7 changed files with 132 additions and 77 deletions

View File

@@ -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 }}

View File

@@ -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

View File

@@ -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'