Condition phone bluetooth connection

I can confirm that cycling home tonight the automation worked fine. Thanks all for your help.

Hopefully someone can provide some insight as to why this doesn’t work for me.

I am trying to make this automation work only when my phone is Bluetooth connected to my vehicle.

I made the helper as TheFes outlined, which shows that the Bluetooth device is connected or not connected as expected, however the automation runs even when the phone is not connected to my vehicle.

Any help would be appreciated.

alias: Location - Kieth's Home
description: ""
trigger:
  - platform: state
    entity_id:
      - person.kieth_r*
    to: home
    enabled: true
condition:
  - condition: state
    entity_id: binary_sensor.is_my_bluetooth_device_connected
    state: "on"
action:
  - device_id: fca88615e5fb96bc0a46599c7155d153
    domain: alarm_control_panel
    entity_id: alarm_control_panel.alarmo
    type: disarm
    code: "****"
  - device_id: f01e75cb2c73a598ee98a3e985f79fb2
    domain: cover
    entity_id: f62028a8702d07e03e54b8823435250e
    type: open
    enabled: false
  - type: turn_off
    device_id: 03445adab1356ed8fdda9452e924e9f9
    entity_id: 12eb377b3df0e0fc23a11e88ecf359e3
    domain: switch
    enabled: false
  - type: turn_on
    device_id: ae2a90f4b2690468c39b2bf2a8080d6f
    entity_id: 30c332dad189072ca0945de801d9e416
    domain: switch
    enabled: false
  - service: cover.open_cover
    data: {}
    target:
      entity_id: cover.ryobi_gdo_door_987bf3124600
    enabled: false
mode: single

Describe how you are testing the automation.

I am manually triggering the automation in HA while I’m away from my home and my phone is not connected to my vehicle

Using the manual “Run” button or the automation.trigger service skips the Condition block. That method is only for testing the Action sequence.

Testing Automations (note that Run was previously labeled as Trigger, the docs need updating)

I understand now, thank you for the information!