SO I have a weird problem which appeared recently in one of the 0.116 releases (I think), it’s anyway been working for months before this without issues.
I have a flow in NodeRED for when someone pushes the doorbell:
Sonos snapshot -> set volume -> play mp3 doorbell -> restore snapshot
However recently, it seems like it makes the snapshots, the audio will pause to play the sound… but nothing happens, then the state is restored again…
Playing the sound directly without doing the snapshots still works correctly every time, so I figured something must be wrong with the snapshot… BUT I have the exact same setup for TTS with Google Cloud, and this still works 100%:
Sonos snapshot -> set volume -> Google TTS -> Restore snapshot
So… now I’m stumped… I switched the URL for the mp3 to my NabuCasa URL (so that it’s https) instead of the local one, but that made no difference at all (wasn’t really expecting any change). It’s as if, only for this, the flow is not waiting for the sound to finish playing before restoring the snapshot.
Ideas?
For now, I just put in a delay after the “play” command for the same length of time that the mp3 is and this seems to be working…