I wrote a automation that when the mailman opened my mailbox.
I get a notification on my Google Home(s), but if music was playing that would stop.
To restart I save the state as scene before playing the message
And restarts with [service: scene.turn_on].
This works now when i stream Radio to TuneIn, but for some reason this does not work with Spotify !?
Anyone have an idea why, and how to solve?
- id: 'mailbox_full'
alias: 'MailBoxFull'
description: 'Mailbox lid has been opened'
trigger:
- entity_id: binary_sensor.mailbox
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
scene_id: mailbox_notification_revert
snapshot_entities: 'media_player.woonkamer,media_player.nestmini7404'
service: scene.create
#- delay: 00:00:04
- data:
entity_id: media_player.woonkamer
message: "You Got Mail"
service: tts.google_say
- delay: 00:00:08
- data:
entity_id: scene.mailbox_notification_revert
service: scene.turn_on