Is it possible to add lumi.remote.b286acn01 to the selector also?
My aqara double rocker had the 01 model number. I changed that in the blueprint and then it worked for me also =D
I have lumi.remote.b286acn01 via deconz integration and after importing this blueprint i don’t have option to choose any devices. I have only info “you dont have any devices”
Probably due to the last change I tried for Anders. I rolled back to the previous version and will check the documentation about adding multiple devices.
Can you try again and let me know if it is working for you now?
Passing here just to appreciate @kenny.vanitterbeek for this, as it “solve” my situation.
Reading the whole thread (including @Krzysztof_Wargocki (tks for that also) and the second Kenny’s template shared, I quickly noticed that I should just adapt to my model (lumi.remote.b28ac1) and that was easy.
I even thought if wouldn’t be easier to leave the model, as a field on the blueprint, to be added into the automation (not tested/know if would work, just a VEY high-level thought).
But then, during tests though, I realised that the Long Press wasn’t working. But reading his clear and easy to follow template, I realised I just had to adjust the template portion of the blueprint (which killed my previous improvement idea, as the fired events changes per model
This is the the final blueprint that I’ve eddited manually:
blueprint:
name: deCONZ - Aqara Wireless Remote Switch Double Rocker (2 buttons)
description: 'Aqara Wireless Remote Switch Double Rocker control
'
domain: automation
input:
remote:
name: Remote
description: Aqara remote
selector:
device:
integration: deconz
manufacturer: LUMI
model: lumi.remote.b286acn02
# Changed from: model: lumi.remote.b28ac1
multiple: false
button_left_single_press:
name: Left button - Single press
description: Action single press of left button
default: []
selector:
action: {}
button_left_double_press:
name: Left button - Double press
description: Action double press of left button
default: []
selector:
action: {}
button_left_long:
name: Left button - Long press
description: Action left button press long
default: []
selector:
action: {}
button_right_single_press:
name: Right button - Single press
description: Action single press of right button
default: []
selector:
action: {}
button_right_double_press:
name: Right button - Double press
description: Action double press of right button
default: []
selector:
action: {}
button_right_long:
name: Right button - Long press
description: Action right button press long
default: []
selector:
action: {}
both_button_single_press:
name: Both buttons - Single press
description: Action single press of both buttons
default: []
selector:
action: {}
both_button_double_press:
name: Both buttons - Double press
description: Action double press of both buttons
default: []
selector:
action: {}
both_button_long:
name: Both buttons - Long press
description: Action both buttons press long
default: []
selector:
action: {}
source_url: https://community.home-assistant.io/t/deconz-aqara-wireless-remote-switch-double-rocker-2-buttons/256123
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 == 1003 }}'
# Changed from: - '{{ event == 1001 }}'
sequence: !input button_left_long
- conditions:
- '{{ event == 1002 }}'
sequence: !input button_left_single_press
- conditions:
- '{{ event == 1004 }}'
sequence: !input button_left_double_press
- conditions:
- '{{ event == 2003 }}'
# Changed from: - '{{ event == 2001 }}'
sequence: !input button_right_long
- conditions:
- '{{ event == 2002 }}'
sequence: !input button_right_single_press
- conditions:
- '{{ event == 2004 }}'
sequence: !input button_right_double_press
- conditions:
- '{{ event == 3003 }}'
# Changed from: - '{{ event == 3001 }}'
sequence: !input both_button_long
- conditions:
- '{{ event == 3002 }}'
sequence: !input both_button_single_press
- conditions:
- '{{ event == 3004 }}'
sequence: !input both_button_double_press