Hi all -
One of my Sonos connect’s is playing to TWO zones through a 2-zone amplifier. I have a Homey Flow to play Sonos when the lights are turned on in Zone 2, and pause when the lights go off in Zone 2.
However, since the Sonos is shared with Zone 1, the stop command above also stops playback if it was started manually in Zone 1.
So, the automation I am trying to create is like this:
Store current Sonos_status in a boolean variable (or flip a virtual switch).
If lights on, start Sonos playback in Zone 2 (if it’s on already, it is not affected, so no extra conditions here)
When lights go off, THEN IF Sonos_status=false (ie it was NOT playing already), THEN STOP Sonos.
Otherwise, do nothing so it keeps playing if it was playing already.
But I couldn’t find a way to set the variable using Sonos as a CONDITION, only as ACTION ie not being able to store its status.
Any workarounds you might suggest?