Skip to content

Instantly share code, notes, and snippets.

@maxju
Last active October 31, 2024 15:33
Show Gist options
  • Save maxju/4676c4f01abb1801488f549ad5d87f43 to your computer and use it in GitHub Desktop.
Save maxju/4676c4f01abb1801488f549ad5d87f43 to your computer and use it in GitHub Desktop.
blueprint:
name: deCONZ - Aqara Wireless Remote Switch Single Rocker (1 button)
description: |
Aqara Wireless Remote Switch Single Rocker control
domain: automation
input:
remote:
name: Remote
description: Aqara remote
selector:
device:
integration: deconz
manufacturer: LUMI
model: lumi.remote.b186acn02
button_single_press:
name: Button - Single press
description: Action single press of button
default: []
selector:
action: {}
button_double_press:
name: Button - Double press
description: Action double press of button
default: []
selector:
action: {}
button_long:
name: Button - Long press
description: Action button press long
default: []
selector:
action: {}
button_release:
name: Button - Release
description: Action button release
default: []
selector:
action: {}
source_url: https://community.home-assistant.io/t/deconz-aqara-wireless-remote-switch-single-rocker-1-button/256250
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_long'
- conditions:
- '{{ event == 1002 }}'
sequence: !input 'button_single_press'
- conditions:
- '{{ event == 1003 }}'
sequence: !input 'button_release'
- conditions:
- '{{ event == 1004 }}'
sequence: !input 'button_double_press'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment