Example Automation to play an Spotify Album on an Sonos Speaker using an SLIX-L Tag
to work (in my case) with IKEA Symfonisk Speaker and SLIX-L Tag from “RFIDFriend”
This automation requiers an running “TeddyCloud” Server, at least one connected Toniebox, HomeAssistant, Spotify HA Integration, MQTT Connection between TeddyCloud and HA
This automation triggers once the Tag with the UID (provided by TeddyCloud via MQTT) “E00403501111111”, once the Tag is placed on the Box the Album starts to play on the IKEA Symfonisk and stops once the Tag is removed.
Currently trying to get this working. Almost there, but I’ve got an issue in my setup:
I’m using a Creative Tonie
Good: When I place the Tonie onto the Box I get the automation triggered and music starts playing
Good: When I remove the Tonie while the creative audio is still playing on the box the automation gets triggered and music stops playing
Bad: When I wait a while (Creative Tonie ends playing its audio) and I remove the Tonie from the box the automation does NOT get triggered.
I noticed that the Content Audio Id first changes from Unknown to the Id of the media I’ve recorded. When I remove the Tonie while this is playing it changes back to Unknown. But when I leave the Tonie on the box, as soon as my recorded audio is finished the Content Audio Id changes to something else. When I now remove the Tonie the Id stays as it is.
Values for Tag Valid are changing in a similar manner: When I remove the Tonie during my recorded audio plays the value changes back to Unknown. But when the recorded audio is finished the Tag Valid won’t change anymore.
My usecase would be to have a Creative Tonie announce what’s going to be played and then play the media on a Sonos until the Tonie is removed again.
You use the “Content Audio ID” as trigger, i noticed the value for my Boxes is “System sounds en-gb - Clingclong (finished audio)” once the Toniebox playback is finished.
As far as i can tell atm the “tag_valid” and the “playback” Sensor are keeping the value even the Box is off, so the only Value you could use to trigger the “stop spotify playback” would be the “Content Audio ID” Sensor
so the only Value you could use to trigger the “stop spotify playback” would be the “Content Audio ID” Sensor
I’d like to stop playing when the Tonie is removed, not when the audio from the Creative Tonie is finished. My idea would be to have the Creative Tonie just say something short like announcing what is going to be played, i.e. “Now playing: Foobar and Friends”. Then the Toniebox is silent and Sonos plays the Spotify playlist. Sonos stops playing when the Tonie is removed (this could be hours later).
Thats why i use the “Tag Valid” Sensor to get the current UID. Specific UID Starts Spotify, No UID stops Spotify.
Remember, that the Box will shutdown when there is No Playback for a specific time. Then you have No way to Trigger the Stop Event when you remove the Tonie.