Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
- alias: 'Home coming'
trigger:
- platform: state
entity_id: group.all_persons
to: 'home'
action:
- service: notify.all
data_template:
title: "Welkom thuis!"
message: >
Aanwezig:
{% for state in states.device_tracker -%}
{% if state.state == 'home' %}
{{ state.name }}
{%- endif -%}
{% endfor %}
- service: rest_command.vera_home_mode
- service: tts.google_say
data:
entity_id: media_player.woonkamer_mini
message: 'Welkom thuis!'
- alias: 'Leaving'
trigger:
- platform: state
entity_id: group.all_persons
to: 'not_home'
action:
- service: notify.all
data:
message: Afwezigheid gedetecteerd
- service: rest_command.vera_away_mode