It looks like it would take some work but this information is in the shell command dumpsys bluetooth. Requires root.
I can get the MAC address of a connected device but the friendly name would be better...
IIRC, only one bluetooth device can be connected at any one time. So, couldn't you just use the method I described and store the MAC address and friendly name in global variables? You could then use a variable value state for your context.
IIRC, only one bluetooth device can be connected at any one time. So, couldn't you just use the method I described and store the MAC address and friendly name in global variables? You could then use a variable value state for your context.