Created
February 13, 2025 15:43
-
-
Save devjourney/37ba1ace5e8fd848ca85b8d7c1a9cce1 to your computer and use it in GitHub Desktop.
A Home Assistant automation that will play an audio message when a gate has been held open too long.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias: Alert on Pool Gate Opened | |
description: "" | |
mode: single | |
triggers: | |
- type: opened | |
device_id: 896de4d80d8fa631e58804be71b50b51 | |
entity_id: f40b16da6652e7402e9b819f707cedf3 | |
domain: binary_sensor | |
for: | |
hours: 0 | |
minutes: 0 | |
seconds: 15 | |
trigger: device | |
conditions: [] | |
actions: | |
- metadata: {} | |
data: | |
volume_level: 0.8 | |
target: | |
device_id: ac06e6473cfa72853017940183a5ed52 | |
action: media_player.volume_set | |
- target: | |
entity_id: media_player.kitchen_speaker | |
data: | |
media_content_id: >- | |
media-source://tts/tts.google_en_com?message=The+pool+gate+was+held+open&language=en-us | |
media_content_type: provider | |
metadata: | |
title: The pool gate was held open | |
thumbnail: https://brands.home-assistant.io/_/tts/logo.png | |
media_class: app | |
children_media_class: null | |
navigateIds: | |
- {} | |
- media_content_type: app | |
media_content_id: media-source://tts | |
- media_content_type: provider | |
media_content_id: >- | |
media-source://tts/tts.google_en_com?message=The+pool+gate+was+held+open&language=en-us | |
action: media_player.play_media |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment