Emit events when playing through any method (including Bluetooth) #195
Replies: 5 comments
-
Not sure about how this could be implemented. We're pushing the limits of the platform already, and adding yet another socket is going to cost some memory. If you look at the network traffic between a browser and a player, you'll see that the status message contains two Bluetooth related fields. Perhaps you could build your automation from two different sources: the Logitech media server for playback originating from there, and the player status JSON for Bluetooth. |
Beta Was this translation helpful? Give feedback.
-
I’ll take a look at that network request the next chance I get, but I also wonder: Could Bluetooth events be emitted to the SLIM server? That way the memory could be saved |
Beta Was this translation helpful? Give feedback.
-
I doubt that the slimproto has any provision for that sort of event, unfortunately. If you think of something specific, let me know |
Beta Was this translation helpful? Give feedback.
-
I'm converting this to a discussion for now |
Beta Was this translation helpful? Give feedback.
-
This is definitely not a fix for your request, it's merely a workaround.
This is really messy since I had to build triggers for 3 different phones and 2 different spotify integrations, but it's the best I could do as a workaround. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm looking for the end goal of being able to automate lighting/smart outlets based on whether the squeezelite is playing audio (device connected but not playing is fine too).
I do have access to the SLIM event subscription so it seems like a handy method. I can also make any type of network API work (push is desired over poll, but whatever)
Beta Was this translation helpful? Give feedback.
All reactions