fix HA shower time

This commit is contained in:
Paul
2019-10-15 18:26:58 +02:00
parent 66c8e919a9
commit 07f821590b
2 changed files with 19 additions and 17 deletions

View File

@@ -1,13 +1,14 @@
- id: boiler_shower
alias: Alert shower time
initial_state: true
trigger:
platform: mqtt
topic: home/ems-esp/showertime
topic: home/ems-esp/shower_data
action:
- service: notify.general_notify
data_template:
title: "Shower finished at {{states.sensor.time.state}}"
message: "{{ trigger.payload_json['duration'] }}"
- service: notify.admin_notify
data_template:
title: Shower finished at {{states.sensor.time.state}}
message: "{{ trigger.payload_json['duration'] }}"
# when ems-esp starts send boottime
- id: boiler_restart