mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-06-23 00:53:03 +00:00
26 lines
770 B
YAML
26 lines
770 B
YAML
|
#-------------------------------------------
|
||
|
# Locator Automation
|
||
|
# Description: Announces the location of all family members when triggered
|
||
|
#
|
||
|
# Features:
|
||
|
# - Triggered by input_boolean.locator (for Alexa integration)
|
||
|
# - Uses speech_engine script to announce where everyone is
|
||
|
# - Designed for use with Alexa ("Alexa, turn on locator")
|
||
|
#
|
||
|
# Follow me on https://www.vcloudinfo.com/click-here
|
||
|
#-------------------------------------------
|
||
|
- alias: 'Locator'
|
||
|
id: locator-announcement-001
|
||
|
mode: single
|
||
|
trigger:
|
||
|
- platform: state
|
||
|
entity_id: input_boolean.locator
|
||
|
to: 'on'
|
||
|
action:
|
||
|
- service: script.speech_engine
|
||
|
data:
|
||
|
call_no_announcement: 1
|
||
|
- service: input_boolean.turn_off
|
||
|
data:
|
||
|
entity_id: input_boolean.locator
|