Automation trigger with Aqara wireless button connected to Deconz

Hi I have trapped the following events from deconz from my wireless button:

single click:
{
“event_type”: “deconz_event”,
“data”: {
“id”: “switch_9”,
“event”: 1002
},
“origin”: “REMOTE”,
“time_fired”: “2019-03-25T21:00:42.359192+00:00”,
“context”: {
“id”: “612e64dcd15b46168b7dbb13c054ffd9”,
“parent_id”: null,
“user_id”: null
}
}

double-click:
{
“event_type”: “deconz_event”,
“data”: {
“id”: “switch_9”,
“event”: 1004
},
“origin”: “REMOTE”,
“time_fired”: “2019-03-25T21:01:06.206012+00:00”,
“context”: {
“id”: “99d624dcaf094a5cba06b53a88eebf71”,
“parent_id”: null,
“user_id”: null
}
}

long-click:
{
“event_type”: “deconz_event”,
“data”: {
“id”: “switch_9”,
“event”: 1001
},
“origin”: “REMOTE”,
“time_fired”: “2019-03-25T21:01:23.278303+00:00”,
“context”: {
“id”: “b8576738363a478bb96ad31838a1112d”,
“parent_id”: null,
“user_id”: null
}
}

I now want to create automatins from these triggers, I have found a few examples but they dont seem to be applicable to my events.

  • alias: “Test Trigger”
    trigger:
    • platform: event
      event_type: deconz_event
      event_data:
      event_id: switch_9
      click_type: ???
      action:
    • service: homeassistant.toggle
      entity_id: group.example_light

Need some help please.

Solved it myself… the solution was too easy: click_type: 1001…