I would like to trigger my garage door to open when entering my zone and use my phones BT connection as a condition.
I ride a motorcycle and have a BT headset connected to my phone and I would only like the door to open when the phone is connected to that BT device
I have tried everything and nothing works.
Running in Docker on Synology NAS
Home Assistant 2022.9.4
Frontend 20220907.2 - latest
condition: state
entity_id: sensor.sm_n986b_bluetooth_connection
attribute: connected_paired_devices
state: " D0:A4:6F:CB:BF:AA, 44:68:0C:82:04:E4"
Taken From States connected_paired_devices: D0:A4:6F:CB:BF:AA (LC-B45), 44:68:0C:82:04:E4 (SPEN NA)
returns false just like yours, but how to i use that in a condition
Oh and thanks a bunch for taking the time to help
It was just one of the Bluetooth devices you wanted as a condition? You had both as a string.
That will only work when both is connected at the same time. And the name had LC-B45 also in it?
Mate , you absolutly nailed it and it works perfectly … but if you run the test in the UI you will get the error below.
Error occurred while testing condition
template value should be a string for dictionary value @ data[‘value_template’]. Got Noneolutly nailed it … thanks … I will say that it works pefectly but in you run the test you get this