mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-09 09:19:51 +03:00
added mqtt for hot water & heating on/off
This commit is contained in:
BIN
doc/ha/ha.png
BIN
doc/ha/ha.png
Binary file not shown.
|
Before Width: | Height: | Size: 149 KiB |
@@ -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
|
||||
|
||||
@@ -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:
|
||||
12
doc/home assistant/binary_sensor.yaml
Normal file
12
doc/home assistant/binary_sensor.yaml
Normal 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
BIN
doc/home assistant/ha.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 102 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
9
doc/home assistant/input_number.yaml
Normal file
9
doc/home assistant/input_number.yaml
Normal 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
|
||||
|
||||
@@ -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'
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user