Sonoff Mini working HA with AlexxIT but doesn't appear as devices

Hi, I follow AlexxIT instructions to configure my sonoff (2 mini for lights and 2 with 5v to open/close gates).
Everything is working and visible at lovelace.
But now I would like to configure some automation and I realize that none of the sonoffs appear on devices.
So how can I select my devices to define an automation?
The only place where I can see sonoffs is on the entities.
Any help with be nice.
Thanks

Just use the entity id to do automation. See example below:

- id: '1599010718005'
  alias: Auto On Wet Kitchen
  trigger:
  - entity_id: binary_sensor.pir_wet_kitchen
    platform: state
    to: 'on'
  action:
  - entity_id: switch.sonoff_1000bf55a0_1
    service: switch.turn_on
  mode: single

Devices don’t supported yet. But you don’t need devices to create automations.

Thanks for answer. entities works fine