Busch Jaeger Button fires event - how to automate (6735)

I just bought an Busch & Jaeger Button which can fire an on and off event.
I captured the events but how can I automate it now?
Off event:

event_type: zha_event
data:
  device_ieee: d8:5d:ef:11:a1:00:2a:c8
  unique_id: d8:5d:ef:11:a1:00:2a:c8:10:0x0006
  device_id: 348feeb99a799e1fb83b9bc7b110a3d2
  endpoint_id: 10
  cluster_id: 6
  command: "off"
  args: []
  params: {}
origin: LOCAL
time_fired: "2024-03-12T14:53:08.205042+00:00"
context:
  id: 01HRSJEA7D2G34FFQRTTXREFJ3
  parent_id: null
  user_id: null

on event

event_type: zha_event
data:
  device_ieee: d8:5d:ef:11:a1:00:2a:c8
  unique_id: d8:5d:ef:11:a1:00:2a:c8:10:0x0006
  device_id: 348feeb99a799e1fb83b9bc7b110a3d2
  endpoint_id: 10
  cluster_id: 6
  command: "on"
  args: []
  params: {}
origin: LOCAL
time_fired: "2024-03-12T14:53:06.991842+00:00"
context:
  id: 01HRSJE91FBFYHB4X0MSNS2N2S
  parent_id: null
  user_id: null

Can you help me out how to integrate that into an automation?
image

Do I need to use yaml and not the gui?

edit:

I could help myself:

I had to choose manual event first