deCONZ - Aqara Wireless Remote Switch Double Rocker (2 buttons)

Blueprint to support the Aqara Wireless Remote Switch Double Rocker thanks to @Savjee for this inspiration :slight_smile: .

This version is for the lumi.remote.b286acn02
For the lumi.remote.b286acn01, you can download that blueprint here.

The buttons support:

  • Single press
  • Double press
  • Long press

Also support for simultaneous pressing on both buttons

Screen:

Blueprint to import:

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
    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 == 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 == 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 == 3001 }}'
    sequence: !input 'both_button_long'
  - conditions:
    - '{{ event == 3002 }}'
    sequence: !input 'both_button_single_press'
  - conditions:
    - '{{ event == 3004 }}'
    sequence: !input 'both_button_double_press'
2 Likes

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

Hi Anders,
Added lumi.remote.b286acn01to the selector.
Can you do an extra check since I do not have a lumi.remote.b286acn01?

Thanks,
Kenny

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”


image

Hi Krzysztof,

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?

Regards,
Kenny

Hi Kenny,
For me still not work becouse you roll back to version which support only lumi.remote.b286acn02 but I have lumi.remote.b286acn01 model.

I change blueprint via file editor manually to lumi.remote.b286acn01 and works perfect

@sjostrand, @Krzysztof_Wargocki,

I could not find a workable solution for having both remotes (selector with multiple devices) in one blueprint.

So I created a new blueprint for the lumi-remote-b286acn01 version that you can find here.

Thanks for your efforts, maybe this should be an improvement request to the developers.

To be able to select multiple selector devices.

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 :frowning:

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

Once again, thanks Kenny!