Trying to tweak the welcome home autoamtions so they list everyone
This commit is contained in:
parent
4a178110d2
commit
26066d3c19
|
@ -319,7 +319,7 @@ automation:
|
||||||
|
|
||||||
- id: welcome_home
|
- id: welcome_home
|
||||||
alias: Welcome Home
|
alias: Welcome Home
|
||||||
mode: queued
|
mode: restart
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id:
|
entity_id:
|
||||||
|
@ -330,17 +330,23 @@ automation:
|
||||||
- person.skylar
|
- person.skylar
|
||||||
from: 'not_home'
|
from: 'not_home'
|
||||||
to: 'home'
|
to: 'home'
|
||||||
condition:
|
|
||||||
condition: state
|
|
||||||
entity_id: input_boolean.welcome_home
|
|
||||||
state: 'off'
|
|
||||||
action:
|
action:
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.welcome_home
|
||||||
|
state: "on"
|
||||||
|
sequence:
|
||||||
|
- service: script.turn_on
|
||||||
|
entity_id: script.welcome_briefing
|
||||||
|
default:
|
||||||
- service: group.set
|
- service: group.set
|
||||||
data:
|
data:
|
||||||
object_id: "arriving"
|
object_id: "arriving"
|
||||||
add_entities: >-
|
add_entities: >-
|
||||||
{{ trigger.to_state.entity_id }}
|
{{ trigger.to_state.entity_id }}
|
||||||
- delay: 00:03:00
|
- wait_template: "{{ is_state('binary_sensor.laundry_room_door', 'on') }}"
|
||||||
|
timeout: '00:3:00'
|
||||||
- service: script.status_annc
|
- service: script.status_annc
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_presence.state }}'
|
who: '{{ states.sensor.room_presence.state }}'
|
||||||
|
@ -358,14 +364,10 @@ automation:
|
||||||
{%- macro greeting_sentence(person, is_are, has_have) -%}
|
{%- macro greeting_sentence(person, is_are, has_have) -%}
|
||||||
{{ [
|
{{ [
|
||||||
person ~ has_have + " arrived.",
|
person ~ has_have + " arrived.",
|
||||||
person ~ is_are + " in the neighborhood.",
|
|
||||||
person ~ is_are + " arriving.",
|
|
||||||
"My sensors are picking up the presence of additional humans. " ~ person ~ has_have + " been identified as home.",
|
"My sensors are picking up the presence of additional humans. " ~ person ~ has_have + " been identified as home.",
|
||||||
"Welcome back home " ~ person,
|
|
||||||
"Guess who is home?" ~ person ~ is_are,
|
"Guess who is home?" ~ person ~ is_are,
|
||||||
"I am sensing a disturbance in the force. " ~ person +" must be home!",
|
"I am sensing a disturbance in the force. " ~ person +" must be home!",
|
||||||
person ~ is_are + "now in the house.",
|
person ~ is_are + "now in the house.",
|
||||||
person ~ "! You are home!",
|
|
||||||
person ~ is_are + " now here. Hash tag Welcome Home.",
|
person ~ is_are + " now here. Hash tag Welcome Home.",
|
||||||
person ~ is_are + " now here. Hash tag Home.",
|
person ~ is_are + " now here. Hash tag Home.",
|
||||||
"I know a secret! " ~ person ~ is_are +" home!",
|
"I know a secret! " ~ person ~ is_are +" home!",
|
||||||
|
@ -382,7 +384,6 @@ automation:
|
||||||
object_id: "arriving"
|
object_id: "arriving"
|
||||||
entities: []
|
entities: []
|
||||||
|
|
||||||
|
|
||||||
- id: guests_have_arrived
|
- id: guests_have_arrived
|
||||||
alias: Guests have arrived
|
alias: Guests have arrived
|
||||||
trigger:
|
trigger:
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{# Event Report #}
|
{# Event Report #}
|
||||||
{%- macro getReport() -%}
|
{%- macro getReport() -%}
|
||||||
<p>
|
<p>
|
||||||
{% set person = expand('group.arriving')|map(attribute='name')|join(' and ') %}
|
{% set person = expand('group.people')| selectattr('state', 'eq', 'home') | map(attribute='name')|join(' and ') %}
|
||||||
{% set peoplecount = expand('group.arriving') | count %}
|
{% set peoplecount = expand('group.arriving') | count %}
|
||||||
{% if peoplecount == 0 %}
|
{% if peoplecount == 0 %}
|
||||||
<s>Welcome Home</s>
|
<s>Welcome Home</s>
|
||||||
|
|
Loading…
Reference in New Issue