Multi Click button automation EcoDim ED-10015

I’m not able to get this automation going the way i want to.
I have multiple EcoDim ED-10015 devices that have 8 buttons:
image

The device controls 4 zigbee zones and dimms the linked groups when i press I or O.

I would Home assistant to detect multiple presses of one button.
The devices exposes one sensor called action:

Depending on the buttons pressed, the sensor’s state changes to “on_1”, “on_2”,“on_3”, “on_4”,“off_1”, “off_2”,“off_3”, “off_4”

Goal:
I want to create an automation (later on blueprint) to be able to execute actions on:

  • single click
  • double click
  • tripple click

But so far i’m not even getting the double buttons press detectged properly.

my automation:

alias: New Automation
description: ""
trigger:
    # EcoDim ED-10015 Button 4
  - platform: device
    domain: mqtt
    device_id: 092f046e39055b3d0b9993d276471b8a
    type: action
    subtype: on_4
    discovery_id: 0x60a423fffe60eeb7 action_on_4
condition: []
action:
  - wait_for_trigger:
      - platform: device
        domain: mqtt
        device_id: 092f046e39055b3d0b9993d276471b8a
        type: action
        subtype: on_4
        discovery_id: 0x60a423fffe60eeb7 action_on_4
    timeout:
      hours: 0
      minutes: 0
      seconds: 0
      milliseconds: 500
    continue_on_timeout: true
  - if:
      - condition: template
        value_template: "{{not wait.completed }}"
    then:
      # Single click
      - device_id: 267cae4d839472f667a0960045cfb2df
        domain: light
        entity_id: light.0x001788010bf939b8
        type: flash
    else:
      # Double click
      - device_id: 207e26e68dab880066e949f03f62eadf
        domain: light
        entity_id: light.0x001788010bf93a75
        type: flash
mode: single

It allways runs the actions of the single click path.

What am i doing wrong ?

2 Likes