I need a condition that only triggers when my android phone is connected to a certain Bluetooth device. from what I'm reading this can only be done by using yaml, I suck @ yaml 😦
Could someone post the proper yaml code so I can paste it in my automation.
the bluetooth device ID is 58:B3:FC:DA:CE:D1 (AP-BTM-1200)
and this is my phone sensor sensor.pixel_7_pro_bluetooth_connection
Thank you in advance
#Connected to a bluetooth device
1 messages · Page 1 of 1 (latest)
Understood sorry
try this
{{ '58:B3:FC:DA:CE:D1' in state_attr('sensor.pixel_7_pro_bluetooth_connection', 'connected_paired_devices')|string }}
it should return true if its connected to the device and false if not and can be used as a template contition
I am entirely sure there is probably a better way of doing this but... if it works?
That works!!! Thank you very much