I’m starting to go down the rabbit hole of sniffing bluetooth traffic for a specific bluetooth speaker (Sony GTK-XB72). I ordered the adapters I need to get started and am currently waiting for them to be delivered.
I’m pretty confident I’ll be able to get the following bluetooth services/values to send to control the speaker:
Power On
Power Off
Volume Up
Volume Down
Input - Audio In
Other settings that are controlled via the Sony Music Center App:
Input - FM Tuner
Power - Auto Standby (on/off)
Bluetooth Standby - (on/off)
Lighting Modes - Light off, Rave, Chill, Random Flash Off, Hot, Cool, Strobe, Calm Magenta, Calm Cyan, Calm Lime, Calm Cinnabar, Calm Daylight, Calm Light Bulb
Sound - ClearAudio+ (on/off)
Sound - Extra Bass (on/off)
Sound - Live Sound (on/off)
Sound EQ - Excited, Energetic, Bright, Nostalgic, Chill Out, Relaxed, Flat, Custom EQ
Other Settings - Voice Guidance (on/off)
My question here is what would be the best way to integrate some of these settings/features with Homeassistant? Should I just create a python script and call it as a service (is that possible?) Is there an integration I’m not aware of that can send bluetooth commands?
My use case is to turn on and set this speaker to “Input - Audio In” via a Homeassistant automation. I don’t really require direct controls in Lovelace, although that would be amazing if that’s possible.
Looks like when the speaker is powered off (but with the bluetooth standby function enabled), you can only turn it on by either physically pressing the power button or establishing the bluetooth connection.
When pressing the power button, it defaults to the last preset input (i.e. bluetooth, usb, fm radio or audio-in).
When establishing the bluetooth connection (with bluetooth standby function enabled), it turns on and switches to bluetooth regardless of the last set input.
This will probably change how I configure “Power On” as I think I’ll only be able to do it by initiating the bluetooth connection.
I am not sure if this helps but an IR-Blaster might help to get all features.
In my case I am using an IR-Blaster (e.g. Broadlink RM3) to access specific features of my “dumb” amp and it works flawlessly.
pro: very reliable and “idiot proof” once it is setup
con: another device in your network
I wish I could use IR… I actually ordered the following IR remote (came in today) hoping the GTK-XB72 has IR but was missing from the manual, but unfortunately it doesn’t have IR. The previous model (GTK-XB7) appears to have supported IR.
Another option I could do if I can’t figure out the “Power-On” piece is to just turn off the “Auto Standby Function” so that the device never powers down after 15 minutes of inactivity and just send the bluetooth command to turn off the lights or something.
It is a simple tool to manage your remote Android devices and play music on your wireless headset or wireless speakers. Just connect the Android device via bluetooth manager ICS and enable/ disable the audio feature checkbox. momix myindigocard