The issue is that connected_paired_devices returns a list, not a string. The easiest fix is to use a Template condition to check if your device’s name is within that list:
alias: Test
description: ""
trigger:
- platform: state
entity_id: sensor.sm_g988b_bluetooth_connection
attribute: connected_paired_devices
condition:
- condition: zone
entity_id: device_tracker.sm_g988b
zone: zone.nablus_home
- condition: template
value_template: |-
{{'C0:91:B9:B3:27:70 (Echo Dot-758)' in
state_attr('sensor.sm_g988b_bluetooth_connection', 'connected_paired_devices') }}
action:
- device_id: 6d4cf24417a8bbc426e9c49a14cd7982
domain: mobile_app
type: notify
message: Hi
I want to make an automation if the mobile device is connected to a bluetooth device called vw. I check if it is in a specific area to open the garage door.