added mqtt for hot water & heating on/off

This commit is contained in:
proddy
2018-12-08 16:32:21 +01:00
parent 357d2a56ad
commit 30e73cbd0c
20 changed files with 213 additions and 172 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 149 KiB

View File

@@ -1,18 +0,0 @@
thermostat_temp:
name: Set Temperature
icon: mdi:temperature-celsius
min: 10
max: 25
step: 0.5
unit_of_measurement: "°C"
mode: slider
boiler_wwtemp:
name: Warm Water temp
icon: mdi:temperature-celsius
min: 30
max: 60
step: 1
unit_of_measurement: "°C"
mode: slider

View File

@@ -1,7 +1,3 @@
##########################################################
## Boiler
##########################################################
- id: boiler_shower
alias: Alert shower time
trigger:
@@ -43,31 +39,6 @@
payload: >
{{ now().strftime("%H:%M:%S %-d/%b/%Y") }}
# Set thermostat temp
- id: thermostat_temp
alias: 'Adjust Theromostat Temperature'
trigger:
platform: state
entity_id: input_number.thermostat_temp
action:
service: mqtt.publish
data_template:
topic: 'home/boiler/thermostat_cmd_temp'
payload: >
{{ states.input_number.thermostat_temp.state }}
# See if thermostat_temp has changed in recent mqtt payload, then adjust input_number
- id: thermostat_temp_incoming
trigger:
platform: state
entity_id: sensor.current_set_temperature
action:
service: input_number.set_value
data_template:
entity_id: input_number.thermostat_temp
value: '{{ states.sensor.current_set_temperature.state }}'
# Boiler warm water temp
- id: boiler_wwtemp
trigger:

View File

@@ -0,0 +1,12 @@
- platform: mqtt
name: 'Tap Water'
state_topic: 'home/boiler/tapwater_active'
payload_on: "1"
payload_off: "0"
- platform: mqtt
name: 'Heating'
state_topic: 'home/boiler/heating_active'
payload_on: "1"
payload_off: "0"

BIN
doc/home assistant/ha.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -0,0 +1,9 @@
boiler_wwtemp:
name: Warm Water temp
icon: mdi:temperature-celsius
min: 30
max: 60
step: 1
unit_of_measurement: "°C"
mode: slider

View File

@@ -26,6 +26,16 @@
name: 'Last shower duration'
force_update: true
- platform: mqtt
state_topic: 'home/boiler/boiler_data'
name: 'Tap Water'
value_template: '{{ value_json.tapwaterActive }}'
- platform: mqtt
state_topic: 'home/boiler/boiler_data'
name: 'Heating'
value_template: '{{ value_json.heatingActive }}'
- platform: mqtt
state_topic: 'home/boiler/boiler_data'
name: 'Warm Water selected temperature'

View File

@@ -51,13 +51,6 @@ views:
- type: vertical-stack
cards:
- type: entities
title: Thermostat
show_header_toggle: true
entities:
- sensor.current_room_temperature
- sensor.current_mode
- input_number.thermostat_temp
- type: history-graph
entities:
- sensor.current_room_temperature