This blueprint works with the 2016 WXKG02LM model. I have not found another blueprint on the forums or elsewhere that works with this specific model, so I created my own.
blueprint:
name: ZHA - Aqara Wireless Double Rocker WXKG02LM
description: Automate your Xiaomi Aqara Wireless Double Rocker WXKG02LM using ZHA events.
domain: automation
input:
aqara_switch:
name: Select the switch
description: Aqara Wireless Double Rocker WXKG02LM
selector:
device:
integration: zha
manufacturer: LUMI
entity:
domain: sensor
device_class: battery
button_single_press_left:
name: Single Press Left
description: Action to run on single press
default: []
selector:
action:
button_single_press_right:
name: Single Press Right
description: Action to run on single press
default: []
selector:
action:
button_single_press_both:
name: Single Press Both Buttons
description: Action to run on single presses
default: []
selector:
action:
mode: restart
max_exceeded: silent
trigger:
- platform: event
event_type: zha_event
event_data:
device_id: !input aqara_switch
action:
- variables:
command: "{{ trigger.event.data.endpoint_id }}"
command2: "{{ trigger.event.data.args.value }}"
- choose:
- conditions:
- "{{ command == 1 }}"
- '{{ command2 == "Bool.true" }}'
sequence: !input button_single_press_left
- conditions:
- "{{ command == 2 }}"
- '{{ command2 == "Bool.true" }}'
sequence: !input button_single_press_right
- conditions:
- "{{ command == 3 }}"
- '{{ command2 == "Bool.true" }}'
sequence: !input button_single_press_both