Rework door open alerts, close #185
This commit is contained in:
@ -42,25 +42,4 @@ alert:
|
||||
- tv_notifications
|
||||
- ios_tony
|
||||
- ios_tina
|
||||
- ios_kallen
|
||||
|
||||
automation:
|
||||
- id: 5a82b718-3846-452b-9aa4-a183a88c8f29
|
||||
alias: Door Open Alert
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- binary_sensor.front_door
|
||||
- binary_sensor.back_door
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
for:
|
||||
hours: 0
|
||||
minutes: 2
|
||||
seconds: 0
|
||||
action:
|
||||
- service: script.status_annc
|
||||
data:
|
||||
who: 'living_room'
|
||||
call_interruption: 1
|
||||
call_snark_door_open: 1
|
||||
- ios_kallen
|
@ -1759,7 +1759,15 @@ script:
|
||||
'Can a human be so kind and close it?',
|
||||
'The air quality in this house has actually improved.',
|
||||
'Closing the door would improve the security of the house.',
|
||||
'Hey. The door was just opened and this is crazy. But now you know. So. Close it maybe.'
|
||||
'Hey. The door was just opened and this is crazy. But now you know. So close it maybe.'
|
||||
] | random }}
|
||||
{%- endmacro -%}
|
||||
|
||||
{%- macro snark_door_closed() -%}
|
||||
{{ [
|
||||
'Thank you for finally closing the door. The outside world is grateful.',
|
||||
'The door has been closed. Thank you for paying attention.',
|
||||
'You have closed the door. Nerd Home Incorporated thanks you for singlehandedly saving the planet.',
|
||||
] | random }}
|
||||
{%- endmacro -%}
|
||||
|
||||
@ -1919,6 +1927,10 @@ script:
|
||||
{{ snark_door_open() }}
|
||||
{% endif %}
|
||||
|
||||
{% if call_snark_door_closed == 1 %}
|
||||
{{ snark_door_closed () }}
|
||||
{% endif %}
|
||||
|
||||
{% if call_school_pickup_reminder == 1 %}
|
||||
{{ school_pickup_reminder() }}
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user