Hello - Very new here so my apologies for the wrong vernacular.
While listening to music on my Sonos Fives, my goal is to have a cabinet open, the voice say “what’re we drinking?” over the same speakers, pausing the music, and having the music start again. Currently the automation stops the music but does not restart it. Thank you in advance.
alias: Sideboard Left Opened
description: ""
triggers:
- type: opened
device_id: 5418ad438cae60a630b854f6d2634324
entity_id: 966ad3fbf88369ded92511ea0fba0bf6
domain: binary_sensor
trigger: device
conditions: []
actions:
- metadata: {}
data:
message: Whisky Cabinet Opened
title: "**ALERT**"
action: notify.mobile_app_adams_iphone
- target:
entity_id: media_player.lounge_5s
data:
media_content_id: >-
media-source://tts/tts.google_en_com?message=What%27re+we+drinking%3F&language=en-us
media_content_type: provider
metadata:
title: What're we drinking?
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=What%27re+we+drinking%3F&language=en-us
action: media_player.play_media
enabled: true
- action: media_player.volume_set
metadata: {}
data:
volume_level: 1
mode: single