I’m having difficulty using my car Bluetooth connection as a Condition. I’ve tried coding it a couple different ways. Suggestions?
condition: or
conditions:
- condition: template
value_template: >-
{{ "E0:6D:18:11:4E:2D" in state_attr("sensor.sas22_bluetooth_connection",
"connected_paired_devices") }}
alias: Connected to Car
- condition: template
value_template: >-
{{ is_state_attr('sensor.sas22_bluetooth_connection',
'connected_paired_devices', 'E0:6D:18:11:4E:2D') }}
alias: Connected to Car
enabled: true