Blueprint for Aqara Wireless Mini Switch (WXKG11LM)
Integration:
Zigbee2MQTT
Device:
Aqara Wireless Mini Switch (WXKG11LM) (https://www.zigbee2mqtt.io/devices/WXKG11LM.html)
Action:
- Button Single Press
- Button Double Press
- Button Hold
- Button Released
Blueprint:
blueprint:
name: Aqara Wireless Mini Switch (WXKG11LM)
description: Aqara Wireless Mini Switch (WXKG11LM)
domain: automation
input:
switch:
name: Switch
description: Aqara Wireless Mini Switch (WXKG11LM)
selector:
entity:
domain:
- sensor
integration: mqtt
multiple: false
press_single:
name: Single button press
description: Action to perform on a single press
default: []
selector:
action: {}
press_double:
name: Double button press
description: Action to perform on a double press
default: []
selector:
action: {}
hold:
name: Hold button
description: Action to perform when the button is held
default: []
selector:
action: {}
release:
name: Released Button
description: Action to perform when the button is released
default: []
selector:
action: {}
source_url: https://community.home-assistant.io/t/zigbee2mqtt-aqara-wireless-mini-switch-wxkg11lm/810035
mode: queued
max_exceeded: silent
trigger:
- platform: state
entity_id: !input switch
action:
- variables:
command: "{{ trigger.to_state.state }}"
- choose:
- conditions:
- "{{ command == 'single' }}"
sequence: !input press_single
- conditions:
- "{{ command == 'double' }}"
sequence: !input press_double
- conditions:
- "{{ command == 'hold' }}"
sequence: !input hold
- conditions:
- "{{ command == 'release' }}"
sequence: !input release