parent
00b16e3cf5
commit
9801e6293b
@ -0,0 +1,29 @@
|
||||
######################################################################
|
||||
## Announce when people come or go.
|
||||
## Announce over all Chromecast Audios
|
||||
######################################################################
|
||||
- alias: 'Home Stats'
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- group.family
|
||||
from: 'not_home'
|
||||
to: 'home'
|
||||
|
||||
action:
|
||||
- service: script.Voice_notify
|
||||
data_template:
|
||||
value1: >
|
||||
"Welcome Home {{ trigger.entity_id.split('.')[1]|replace('_', ' ') }}. Here are the main points for today:
|
||||
{%if now().strftime("%a") == 'Wed' or now().strftime("%a") == 'Sun'%}
|
||||
Today is {{now().strftime("%A")}} and {{now().strftime("%A")}} is trash day. Please be sure to tell the kids to take out the trash.
|
||||
{%endif%}
|
||||
Inside the house, it is {{ states.climate.downstairs.attributes["current_temperature"]}} degrees with {{states('sensor.downstairs_thermostat_humidity')}} around percent humidity. Outside, it is going to be {{states('sensor.dark_sky_minutely_summary')}}
|
||||
{% if is_state('cover.garadget_large', 'open') -%}
|
||||
Also, The Large Garage Door is still open
|
||||
{% endif -%}
|
||||
{% if is_state('cover.garadget_small', 'open') -%}
|
||||
{% if is_state('cover.garadget_large', 'open') -%}and
|
||||
{%- endif %} The small Garage Door is still open.
|
||||
{% endif %}
|
||||
Loading…
Reference in new issue