Blueprint for Aqara Wireless Mini Switch (WXKG11LM)
Integration:
Zigbee2MQTT 2.x
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 run on single button press
default: []
selector:
action: {}
press_double:
name: Double button press
description: Action to run on double button press
default: []
selector:
action: {}
hold:
name: Hold button
description: Action to perform when the button is held
default: []
selector:
action: {}
release:
name: Release 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