Text notify can now send actionable notifications, close #78
This commit is contained in:
@ -468,21 +468,22 @@ script:
|
||||
- condition: state
|
||||
entity_id: group.adults
|
||||
state: not_home
|
||||
- service: >
|
||||
{% if states('person.christina_stork') in ['Bob Evans','BobEvans'] %}
|
||||
notify.ios_nerds
|
||||
{% else %}
|
||||
notify.all_ios
|
||||
{% endif %}
|
||||
- service: script.text_notify
|
||||
data:
|
||||
who: >
|
||||
{% if states('person.christina_stork') in ['Bob Evans','BobEvans'] %}
|
||||
nerds
|
||||
{% else %}
|
||||
all
|
||||
{% endif %}
|
||||
type: alert
|
||||
title: "Everyone Left"
|
||||
message: "Away mode arming in 1 minute"
|
||||
data:
|
||||
tag: skip-away
|
||||
actions:
|
||||
- action: "SKIP_AWAY"
|
||||
title: Skip Away Mode
|
||||
icon: mdi:debug-step-over
|
||||
message: "Away Mode arming in 1 minute"
|
||||
tag: skip-away
|
||||
actions:
|
||||
- action: "SKIP_AWAY"
|
||||
title: Skip Away Mode
|
||||
icon: mdi:debug-step-over
|
||||
- wait_template: "{{ is_state('input_boolean.away_mode_skipped','on') or is_state('group.adults','home') }}"
|
||||
continue_on_timeout: true
|
||||
timeout:
|
||||
|
Reference in New Issue
Block a user