HA respons to all Deconz event_data

Hi,

I’m trying to get my Philips Hue and Xiaomi switches to work with HA. Adding the switches and using the deconz_sensor to see which buttons are pressed are all working. The problem is that no matter what event_data I use for my Automations, HA always triggers the action. Example:

  • id: ‘1550160111241’
    alias: Xiaomi aan
    trigger:
    • event_data:
      event_data: 34
      id: tap
      event_type: deconz_event
      platform: event
      condition: []
      action:
    • data:
      entity_id: light.ledstrip_kast
      service: light.toggle

This automation works but when I make another automation with event_data 17 it also triggers the above automation. I can’t make automations based on a specific button pressed.
Am I missing something?

Thanks in advance

Wilfred

Compare with the document examples https://www.home-assistant.io/components/deconz/

I am aware of the document examples and read them thoroughly. I would not have posted this question without checking them first. I just can’t find the reason why the automations respond to every button and not just to on specific button

Can you repost the automation as code to keep everything properly spaced