So I have some great automation with HA and my Google ecosystem.
But I came across this today when setting it up, I dont know if this is possible,but wanted to check.
My “pool radio” is a Chromecast with GTV, that pumps sound to some speakers by the pool.
My automation is this…
if someone rings the doorbell (nest), it will say over the speakers that the CGTV is connected to that someone is at the front door.
This works perfectly.
I have an If statement there that if the Pool Radio is playing, then pause, and then tell me someone is at the front door, then play again.
This is HALF working.
What I normally do is when going out to the pool, I cast music from my phone (youtube music) to the CGTV.
So when the doorbell rings, and the music is playing, it does “pause” the music and say someone is there.
It is then supposed to play again.
What is happening is it does not play again.
The CGTV is put back in a playing state, but it has become disconnected (the casting) from my phone? which is weird.
The object is whatever I was casting to that CGTV, when it pauses, then plays again, it picks up where it left off. But it is disconnecting the cast.
Anyone have any ideas here? This may not work like I want it to, but thought I would check.
If you’re using Media Player for your pool radio there is an option - fairly new I think - that will pause playback for the announcement, then let it resume. Mine looks like this:
announce: true
media_content_type: music
media_content_id: http://homeassistant.local:8123/local/sounds/house_away.mp3
extra:
volume: 50
if:
- condition: state
entity_id: media_player.pool_radio
state: playing
then:
- service: media_player.media_pause
data: {}
target:
device_id: 19ef57d9f39e24ec7484bd69a1adc9e6
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: tts.cloud_say
data:
entity_id: media_player.pool_radio
message: Someone is currently at the Front Door
options:
gender: male
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: media_player.media_play
data: {}
target:
device_id: 19ef57d9f39e24ec7484bd69a1adc9e6
else:
- service: tts.cloud_say
data:
entity_id: media_player.pool_radio
message: Someone is currently at the Front Door
options:
gender: male