How to know the google home mini playing or not


#1

1) Give a description of the problem
I use the google home mini, when the bathroom light is on, the webcore resume google speaker to play song. and the light is off, the google speaker stop.
But sometimes the long time passed, the resuming order is ignored. I think the play list went out of the google speaker. So when the resuming order ignored or if I know the google speaker is not playing, I wanna webcore toggle the play list switch.

2) What is the expected behaviour?
I want switch toggle only then the google home mini doesn’t play any song.

3) What is happening/not happening?
I don’t know how to distinguish the google spaeker is playing or not in webcore sentence.

**4) Post a Green Snapshot of the piston![image|45x37]

5) Attach logs after turning logging level to Full
(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)


#2

Normally, once webCoRE sends a command to an external speaker, the speaker takes over from there.

So the question really is, does Google Home Mini report its current status correctly to your ST hub?
(or at the very least, can it flip a switch when the status is X?)


#3

What service are you using to interact with your google home?

For example, I use cast-web-api, as part of the device handler, you have access to a switch or status attribute. When the speaker is active, switch turns on and status is playing.
image