mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-22 09:01:22 +00:00
42 lines
1.1 KiB
YAML
Executable File
42 lines
1.1 KiB
YAML
Executable File
######################################################################
|
|
## Announce when people come or go.
|
|
## Announce over all Chromecast Audios
|
|
######################################################################
|
|
- alias: 'State Announcements'
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- device_tracker.carlo
|
|
- device_tracker.stacey
|
|
- device_tracker.franco
|
|
- device_tracker.yolanda
|
|
- device_tracker.joyce_ipad
|
|
from: 'home'
|
|
to: 'not_home'
|
|
for: '00:03:00'
|
|
|
|
- platform: state
|
|
entity_id:
|
|
- device_tracker.carlo
|
|
- device_tracker.stacey
|
|
- device_tracker.franco
|
|
- device_tracker.yolanda
|
|
- device_tracker.joyce_ipad
|
|
from: 'not_home'
|
|
to: 'home'
|
|
for: '00:03:00'
|
|
|
|
- platform: state
|
|
entity_id:
|
|
- cover.garadget_large
|
|
- cover.garadget_small
|
|
from: 'closed'
|
|
to: 'open'
|
|
for: '00:03:00'
|
|
|
|
action:
|
|
- service: script.Voice_notify
|
|
data_template:
|
|
message: "Attention. {{ trigger.entity_id.split('.')[1].lower().title() }} is now {{ trigger.to_state.state }}"
|
|
cache: true |