mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-11 02:09:57 +03:00
more updates
This commit is contained in:
42
docs/integrations/homeassistant/automation.yaml
Normal file
42
docs/integrations/homeassistant/automation.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
- id: ems-esp_offline
|
||||
alias: See if ems-esp goes offline
|
||||
initial_state: true
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: sensor.ems_esp_status
|
||||
to: offline
|
||||
action:
|
||||
- service: notify.admin_notify
|
||||
data_template:
|
||||
title: EMS-ESP
|
||||
message: 'gone offline'
|
||||
|
||||
- id: emsesp_restart
|
||||
alias: See if ems-esp restarts
|
||||
initial_state: true
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: home/ems-esp/start
|
||||
payload: start
|
||||
action:
|
||||
- service: notify.admin_notify
|
||||
data_template:
|
||||
title: ems-esp has booted
|
||||
message: EMS-ESP
|
||||
- service: mqtt.publish
|
||||
data_template:
|
||||
topic: home/ems-esp/start
|
||||
payload: '{{ now().strftime("%H:%M:%S %-d/%b/%Y") }}'
|
||||
|
||||
- id: boiler_shower
|
||||
alias: Alert shower time
|
||||
initial_state: true
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: sensor.last_shower_duration
|
||||
action:
|
||||
- service: notify.admin_notify
|
||||
data_template:
|
||||
title: Shower finished at {{states.sensor.time.state}}
|
||||
message: "{{ states.sensor.last_shower_duration.state }}"
|
||||
|
||||
Reference in New Issue
Block a user