Advertisement
JLindvig

Keep Nest Alive

Oct 17th, 2022 (edited)
986
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.99 KB | None | 0 0
  1. alias: Keep Nest Alive
  2. description: >-
  3.   Keep a, possibly multiple, Google Nest Mini alives and avoid the Announcement
  4.   tone
  5. trigger:
  6.   - platform: time_pattern
  7.     minutes: /2
  8. condition:
  9.   - condition: or
  10.     conditions:
  11.       - condition: state
  12.         entity_id: media_player.carport
  13.         state: idle
  14.       - condition: state
  15.         entity_id: media_player.carport
  16.         state: "off"
  17. action:
  18.   - service: media_player.play_media
  19.     target:
  20.       entity_id: media_player.carport
  21.     data:
  22.       media_content_id: media-source://media_source/local/audio/silent_1sec.mp3
  23.       media_content_type: audio/mpeg
  24.     metadata:
  25.       title: silent_1sec.mp3
  26.       thumbnail: null
  27.       media_class: music
  28.       children_media_class: null
  29.       navigateIds:
  30.        - {}
  31.         - media_content_type: app
  32.           media_content_id: media-source://media_source
  33.         - media_content_type: ""
  34.           media_content_id: media-source://media_source/local/audio
  35. mode: single
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement