Modified guest automations
This commit is contained in:
parent
edf57e5d2e
commit
7ce909632a
|
@ -395,7 +395,7 @@
|
||||||
initial_state: true
|
initial_state: true
|
||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: time
|
||||||
at: '19:00:00'
|
at: '19:30:00'
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.guest_mode
|
entity_id: input_boolean.guest_mode
|
||||||
|
|
|
@ -376,6 +376,8 @@ automation:
|
||||||
entity_id:
|
entity_id:
|
||||||
- person.jeffrey
|
- person.jeffrey
|
||||||
- person.katherine
|
- person.katherine
|
||||||
|
- person.uncle_matt
|
||||||
|
- person.papa
|
||||||
from: 'not_home'
|
from: 'not_home'
|
||||||
to: 'home'
|
to: 'home'
|
||||||
condition:
|
condition:
|
||||||
|
@ -386,6 +388,7 @@ automation:
|
||||||
- service: script.family_is_home
|
- service: script.family_is_home
|
||||||
- service: script.ah_report
|
- service: script.ah_report
|
||||||
data_template:
|
data_template:
|
||||||
|
call_interuption: 1
|
||||||
welcome_home: >
|
welcome_home: >
|
||||||
{% set person = trigger.to_state.attributes.friendly_name %}
|
{% set person = trigger.to_state.attributes.friendly_name %}
|
||||||
{%- macro greeting_sentence(person) -%}
|
{%- macro greeting_sentence(person) -%}
|
||||||
|
@ -398,8 +401,25 @@ automation:
|
||||||
] | random }}
|
] | random }}
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
{{greeting_sentence(person)}}
|
{{greeting_sentence(person)}}
|
||||||
call_interuption: 1
|
|
||||||
|
|
||||||
|
|
||||||
|
- id: guests_have_arrived
|
||||||
|
alias: Guests have arrived
|
||||||
|
trigger:
|
||||||
|
- entity_id: person.papa
|
||||||
|
event: enter
|
||||||
|
platform: zone
|
||||||
|
zone: zone.home
|
||||||
|
- entity_id: person.uncle_matt
|
||||||
|
event: enter
|
||||||
|
platform: zone
|
||||||
|
zone: zone.home
|
||||||
|
action:
|
||||||
|
- service: script.standby
|
||||||
|
- service: script.family_is_home
|
||||||
|
- service: input_boolean.turn_on
|
||||||
|
entity_id: input_boolean.guest_mode
|
||||||
|
initial_state: true
|
||||||
|
|
||||||
script:
|
script:
|
||||||
jeff_destination_zoo:
|
jeff_destination_zoo:
|
||||||
|
|
Loading…
Reference in New Issue