I stumbled upon the same issue, but I made it work. So if anyone faces the same issues, I hope this helps:
Setup:
- Home Assistant 2024.5.5 on Raspi 4
- zigbee2mqtt with SLZB-06 (FW 0.9.9) as Coordinator
- Aqara H1 WS-EUK04
The Wall Switch is set to decoupled mode for both switches since it controls a Hue Lightbulb and has the State set to ON for the Left Button (thats where the wire runs).
When pressing the button, I do not receive any actions in the Z2M logs, however the Home Assistant Entity reports its status in the Logbook of the Settings → Devices → Detail Screen (the “Action” Entity is the one):
In my case, I pressed the right button, which causes the Action entity to report a change to “single_right” and immediately followed up by an empty one. And after 10 seconds the status is set to “None”. (This ties into FAQ | Zigbee2MQTT)
So now that it was confirmed, that the Switch indeed sends an update, I modified the blueprint from Z2M - Aqara H1(WRS-R02) - Wireless remote switch(Double Rocker) (Updated) - Single/Double + Single/Double/Hold so it works with the H1:
Modifications I made:
- remove the triple and hold actions, since the H1 does not support it
- and removed the attribute: action trigger selection, so it takes the state as it is sent
Here is my working blueprint:
blueprint:
name: Z2M - Aqara H1(WS-EUK02) - Wall switch (double rocker)
description: Scene & device control using Aqara two button wall switch
domain: automation
input:
button_sensor:
name: Aqara switch
description: Aqara switch to use
selector:
entity:
domain: sensor
integration: mqtt
multiple: false
single_left:
name: Left button - Single press
description: Action to run on a single press of the left button
default: []
selector:
action: {}
double_left:
name: Left button - Double press
description: Action to run on a double press of the left button
default: []
selector:
action: {}
single_right:
name: Right button - Single press
description: Action to run on a single press of the right button
default: []
selector:
action: {}
double_right:
name: Right button - Double press
description: Action to run on a double press of the right button
default: []
selector:
action: {}
single_both:
name: Both buttons - Single press
description: Action to run on a single press of both buttons
default: []
selector:
action: {}
double_both:
name: Both buttons - Double press
description: Action to run on a double press of both buttons
default: []
selector:
action: {}
hold_both:
name: Both buttons - Hold
description: Action to run when both buttons are held
default: []
selector:
action: {}
source_url: https://community.home-assistant.io/t/z2m-aqara-h1-wrs-r02-wireless-remote-switch-double-rocker-updated-single-double-single-double-hold/455665
mode: restart
max_exceeded: silent
trigger:
- platform: state
entity_id: !input "button_sensor"
action:
- variables:
command: "{{ trigger.to_state.state }}"
- choose:
- conditions:
- "{{ command == 'single_left' }}"
sequence: !input "single_left"
- conditions:
- "{{ command == 'double_left' }}"
sequence: !input "double_left"
- conditions:
- "{{ command == 'single_right' }}"
sequence: !input "single_right"
- conditions:
- "{{ command == 'double_right' }}"
sequence: !input "double_right"
- conditions:
- "{{ command == 'single_both' }}"
sequence: !input "single_both"
- conditions:
- "{{ command == 'double_both' }}"
sequence: !input "double_both"
- conditions:
- "{{ command == 'hold_both' }}"
sequence: !input "hold_both"
That allowed me to setup conditions so the left button triggers Daylight Scene, the right one Nightlight Scene, and when pressing the button with the active scene again it turns the light off again (I can post the details on that if you are interested).
Hope this helps!