Event to binary sensor conversion

Hello,

I need a bit help to get the example of the documentation running.

template:
  - trigger:
      trigger: event
      event_type: my_event
    binary_sensor:
      - name: Event recently fired
        auto_off: 5
        state: "true"

My event:

I tried to change “my_event” to “press”. But this doesn’t work.

Event triggers are for actual events, not event entities (confusing, I know).
To trigger on an an event entity, you use the state platform.

See the examples at Event - Home Assistant