Skip to content

Commit

Permalink
Add Blueprint
Browse files Browse the repository at this point in the history
deCONZ - Xiaomi Aqara WXKG11LM Wireless Switch
  • Loading branch information
eifinger committed Sep 21, 2021
1 parent 64774a6 commit 4aa6d11
Showing 1 changed file with 76 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
blueprint:
name: deCONZ - Xiaomi Aqara WXKG11LM Wireless Switch
description: Control anything using Xiaomi Aqara WXKG11LM (single button) remote
domain: automation
input:
remote:
name: Remote
description: Button to use
selector:
device:
integration: deconz
manufacturer: LUMI
button_press_in:
name: Single press
default: []
selector:
action: {}
button_double_press:
name: Double press
default: []
selector:
action: {}
button_triple_press:
name: Triple press
description: “Only for lumi.sensor_switch.aq2”
default: []
selector:
action: {}
button_quad_press:
name: Quad press
description: “Only for lumi.sensor_switch.aq2”
default: []
selector:
action: {}
button_hold:
name: Button hold
description: Only for lumi.remote.b1acn01
default: []
selector:
action: {}
button_hold_release:
name: Button hold release
description: Only for lumi.remote.b1acn01
default: []
selector:
action: {}
source_url: https://community.home-assistant.io/t/deconz-xiaomi-aqara-wxkg11lm-smart-wireless-mini-switch/255800
mode: restart
max_exceeded: silent
trigger:
- platform: event
event_type: deconz_event
event_data:
device_id: !input 'remote'
action:
- variables:
event: '{{ trigger.event.data.event }}'
- choose:
- conditions:
- '{{ event == 1001 }}'
sequence: !input 'button_hold'
- conditions:
- '{{ event == 1003 }}'
sequence: !input 'button_hold_release'
- conditions:
- '{{ event == 1002 }}'
sequence: !input 'button_press_in'
- conditions:
- '{{ event == 1004 }}'
sequence: !input 'button_double_press'
- conditions:
- '{{ event == 1005 }}'
sequence: !input 'button_triple_press'
- conditions:
- '{{ event == 1006 }}'
sequence: !input 'button_quad_press'

0 comments on commit 4aa6d11

Please sign in to comment.