Aqara Opple 6 Buttons For Zha

I only manage to get the left 3 button working. None of the right 3 button are working.

Works like a charm! :pray:

Hi Guys,

I ordered the 6 button from aliexpress but got a 1 knob version ;-( Can somebody adapt/create a ZHA blueprint in for this single button, It is recognized by my converted sonoff. no knob action possible. thanks in advance… Frank

THis is the off action in zha_event
{
“event_type”: “zha_event”,
“data”: {
“device_ieee”: “04:cf:8c:df:3c:79:6c:d9”,
“unique_id”: “04:cf:8c:df:3c:79:6c:d9:1:0x0006”,
“device_id”: “5d49e31450bc29d225274e83fd90eaa0”,
“endpoint_id”: 1,
“cluster_id”: 6,
“command”: “off”,
“args”: []
},
“origin”: “LOCAL”,
“time_fired”: “2021-03-14T09:47:17.338883+00:00”,
“context”: {
“id”: “91df3969a376c0a4fb5c45474ecb72d8”,
“parent_id”: null,
“user_id”: null
}
}

and this the on action:
{
“event_type”: “zha_event”,
“data”: {
“device_ieee”: “04:cf:8c:df:3c:79:6c:d9”,
“unique_id”: “04:cf:8c:df:3c:79:6c:d9:1:0x0006”,
“device_id”: “5d49e31450bc29d225274e83fd90eaa0”,
“endpoint_id”: 1,
“cluster_id”: 6,
“command”: “on”,
“args”: []
},
“origin”: “LOCAL”,
“time_fired”: “2021-03-14T09:47:30.986141+00:00”,
“context”: {
“id”: “e80e4647a2eab94a8c5d07a5ad92c8bf”,
“parent_id”: null,
“user_id”: null
}
}

but this could be false information because the device doesnt exists in HA, so HA took another profile.

“manufacturer”: “LUMI”,
“model”: “lumi.remote.b286opcn01”,
“class”: “zigpy.device.Device”

The same problem. Did you manage to solve this somehow?

Can i use this blueprint also for the single and double on?

The left version (with two double buttons) works for me with this blueprint. :+1:

Thank you very much for your efforts.
Please tell me. I imported your blueprint.

Configuration error, what could be the problem?

The screenshot is hidden under the spoiler.

Summary

Pretty certain there shouldn’t be quotes around ‘remote’ on line 201

1 Like

Worked like a champ right away. thanks!

I can see the same behaviour only the left 3 buttons working the right once are not

I had the same issue. After pairing the remote for the first time i had 1_single, 2_single etc. But after repairing it with HA once it suddenly changed to on, off, etc. I could fix it by opening the device in ZHA and choose for ‘reconfigure device’. After that i had 1_single, 2_single again.

I was using it for a while and I updated home assistant to latest version and now hold in doesnt work. all the other functions work normaly expect the hold in, I cant figure why is this. I guess it has to do with a change to event

Edit: so i found the problem, looks like on the newer version the long press is replaced with hold. so go and replace all the long press with hold on event == 1(button number)_long press

Your blueprint is working great, do you guys use ‘Hold in’ to increase or decrease brightness of for example HUE lamp?

Can somebody explain how to dim with button press and hold?

Nice job! Now am I missing something or does this not recognize grouped devices under zha? (i.e. light.breezeway_lights_zha_group_0x000c created by zha containing 6 light bulbs). I don’t see this entity being listed in the devices selection drop down. (or any of my zha group entites)

@Dixey, this will be your solution:

Action type=Service
Service=Light: Turn on
Pick entity=light.breezeway_lights_zha_group_0x000c

good luck!

1 Like

Can somebody help me with dimming? I tried the following, but it does not work. It does not change the state of the helper “input_boolean.light_switch_stube_ost_dimming”

Thanks for helping
Gilbert

here my blueprint code:

alias: New Automation
description: ''
use_blueprint:
  path: Jarne_Roussard/aqara-opple-6-buttons-for-zha.yaml
  input:
    button_bottom_left_hold_in:
      - service: input_boolean.turn_on
        target:
          entity_id: input_boolean.light_switch_stube_ost_dimming
      - repeat:
          until:
            - condition: state
              entity_id: input_boolean.light_switch_stube_ost_dimming
              state: 'on'
          sequence:
            - service: light.turn_on
              target:
                entity_id: light.stube_zha_group_0x0005
              data:
                brightness_pct: -10
    button_bottom_left_hold_release:
      - service: input_boolean.turn_off
        target:
          entity_id: input_boolean.light_switch_stube_ost_dimming
    remote: 8e9a6107950d4d20b871d40aa2e8d36d

I have found the error. The blueprint is not correct:

In the blueprint you have to change all long-press events:

  - conditions:
    - '{{ event == "3_long press" }}'

to this one:

  - conditions:
    - '{{ event == "3_hold" }}'

And then restart HA.

1 Like

Did you update the blueprint with these changes?

Nope. How can i do that?
Temporaly i changed the blue print in my local Installation