Room presence automation - help

Hi
I’ve set some esp32-presence in my house I’ve set om my phone all configuration, and I can track my phone entering room etc.
how do I continue from here how do I set an automation? (i’ve set the cell as a sensor at my sensor.yaml)
thx

this is my automation that does not work:

alias: presence test
description: ""
trigger:
  - platform: state
    entity_id:
      - sensor.l_ble_n
    to: Working_room_II
condition: []
action:
  - type: turn_on
    device_id: 8a0b5acd5af38f98d2add1940e529805
    entity_id: ef68cee760c0b435f89b92025a901260
    domain: switch
mode: single