-
Hello, How would I achieve this? would sonos-event help here? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
"most recent reported playing speaker" is a bit tricky. Idea: With sonos-event you can subscribe to many events - maybe playbackstate - with an intelligent filter (wait 5 seconds, ...). Playbackstate often changes for instance when switching Radio stations, playing a new track, .... Then you can store the name of the player in a flow variable, overwriting the value before. Then you use that value to group your player. |
Beta Was this translation helpful? Give feedback.
"most recent reported playing speaker" is a bit tricky.
Idea:
With sonos-event you can subscribe to many events - maybe playbackstate - with an intelligent filter (wait 5 seconds, ...). Playbackstate often changes for instance when switching Radio stations, playing a new track, ....
Then you can store the name of the player in a flow variable, overwriting the value before.
Then you use that value to group your player.