I’m trying to make an automation using a Move 2 that will automatically pause my music, store the volume level and then restore settings depending on the status of the Bluetooth connection from my computer. I use the Move 2 as a Bluetooth speaker for calls.
The current Sonos integration has no differentiator to indicate when the speaker is in Bluetooth mode or playing other content. The Move 2 behaves like the Era speakers where it still maintains a WiFi connection while playing Bluetooth content. The Sonos app shows a Bluetooth image when the speaker is in this mode.
I have an automation that already works, but it depends on Windows sending the correct Playback Info to the speaker via Bluetooth, and Windows is not good at it. I have it set to trigger when the media title is a version of “Teams Call”, but sometimes it will send “Whatsapp” or “Youtube” based on browser playback that happened at some point.
If I had an ability to see when the speaker is playing bluetooth audio, I could fine tune an automation that doesn’t depend on the content being played.
edit: I just realized the information is in the media_content_id, so adding a value template to my automation should take care of recognizing when the speaker is playing via Bluetooth
condition: template
value_template: "{{ ('bluetooth' in state_attr('media_player.move_2', 'media_content_id')) }}"