zha-device-handlers: New Ikea Somrig button, not able to connect zha

Problem description

Hello :slight_smile: I bought the new Ikea Somrig buttons and would like to connect them to my HomeAssistant with Zigbee Dongle. During the search of a new device, HA identifies the button but is not able to configure it. Although the configuration process does not finish, the device is part of the device list. Sometimes there is a battery and identify entity and sometimes not. I can not control any entity.

Solution description

Is anybody aware if there is a way to connect a device which is currently not fully supported or do you know if there will be an integration?

Screenshots/Video

Bildschirm­foto 2023-12-12 um 20 17 57 Bildschirm­foto 2023-12-12 um 20 20 21

Device signature

IEEE: 5c:c7:c1:ff:fe:87:35:e2 Nwk: 0x046e Device Type: EndDevice LQI: 108 RSSI: Unbekannt Zuletzt gesehen: 2023-12-12T20:13:52 Energiequelle: Battery or Unknown

Diagnostic information

zha-e958911dd7b4b0c8793c91dc810d16d3-IKEA of Sweden SOMRIG shortcut button-7dfa14459bf34ecb1709bcf1e8686b31.json.txt

Logs

Logs
[Paste the logs here]

Custom quirk

Custom quirk
[Paste your custom quirk here]

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 7 months ago
  • Reactions: 5
  • Comments: 51 (13 by maintainers)

Most upvoted comments

you have to create a new folder e.g.

/config/custom_zha_quirks

in which you save the “somrigsmartbtn.py”. Then add the following to “configuration.yaml”

zha:
  enable_quirks: true
  custom_quirks_path: /config/custom_zha_quirks/

Restart HA and add the button again.

No, the point is to get it to work with ZHA (and it does 😃 )

I am working on a quirk for the remote, I have some issues contributing (its my first time).

It works as a custom quirk in my setup, so if you know how to add custom quirks you can copy my code for now.

Its looks like your device is paired OK but its sending manufacture specific commands and need one quirk for getting the events from it OK. SYMFONISK II is using the same command so its shall not being so large problem getting it done but i cant then im not at home for the moment.

As mentioned here you have to enforce ZLL. For me this just worked by pairing Somrig via a Light device. Not sure if one can enforce ZLL otherwise. Screenshot_20240202-082634

After pairing that way I receive the events Screenshot_20240202-082852

I can confirm that. I was trying everything to connect SOMRIG via my Sonoff Zigbee dongle and even if I went through the configuration step somehow the buttons never worked. I’ve connected Ikea TRADFRI lighbulb first and then used it to connect the remote and suddenly everything works perfectly.

@RASTRILL0 This device can only being bond if its using in ZLL mode (direct paring with light without coordinator) the its sending On/Off light commands. Then being paired with one coordinator its only sending short double and long press / release in matter standard commands for switches and lights is not understanding this commands. You shall using automatons triggered from the events the remote is sending and defining actions they shall doing in the automations.

This worked perfectly for me. Will somrigsmartbtn.py be included in a future release?

Its in HA 2024.1

Thank you Funder75, was loosing my mind. Tried long pressing, and pressing together with button 1 and even reading the manual. Thought the device was broken 😄 Now paired but only the same entities battery and identify

I have a similar problem with the Somrig button. I had to reset the button (4 clicks on the link button) for it to enter pairing mode. Then it seemed to pair successfully, but now I have only entities for Identity and battery.

Skærmbillede 2023-12-17 kl  09 53 23