question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] IKEA E1812 shortcut button does not use quirks

See original GitHub issue

Describe the bug I have two IKEA E1812 Tradfri shortcut buttons that started to behave differently. ZHA claims that they have the same firmware (I also bought them together), but they now have different clusters: The one that is not picked up correctly has an extra in_cluster with ID 0xfc7c in its device signature. This causes zhaquirks.ikea.shortcutbtn.IkeaTradfriShortcutBtn to not pick this button up, producing a Fail because input cluster mismatch on at least one endpoint message in the log.

The zha_event still fires as it should, so by using the raw event one can work around this, but maybe there’s a way to get the quirks to work.

To Reproduce

  • pair a shortcut button that has the 0xfc7c input cluster
  • go to the device page and see that no quirks are applied
  • try to add an automation, see that triggers for button press are missing

(Unfortunately I have no clue what caused the two buttons to present different signatures)

Expected behavior The quirks should still apply

Additional context signature of the button with the extra cluster (this is the only difference between my buttons) EDIT: The WindowCovering output cluster is also missing on the weird button

{
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>, manufacturer_code=4476, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0820",
      "in_clusters": [
        "0x0000",
        "0x0001",
        "0x0003",
        "0x0009",
        "0x0020",
        "0x1000",
        "0xfc7c"
      ],
      "out_clusters": [
        "0x0003",
        "0x0004",
        "0x0006",
        "0x0008",
        "0x0019",
        "0x1000"
      ]
    }
  },
  "manufacturer": "IKEA of Sweden",
  "model": "TRADFRI SHORTCUT Button",
  "class": "zigpy.device.Device"
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
kaechelecommented, Mar 15, 2022

The fixed quirk does fix my buttons not registering press events with HA after they were updated to 2.3.080.

1reaction
RenWalcommented, Dec 24, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

IKEA Tradfri E1812 Shortcut-Button does not work - Hardware
Hi there! I've bought IKEA Tradfri E1812 ShortCut-Button and tried to use with HomeAssistant. I tried ZHA and I tried zigbee2mqtt - nothing ......
Read more >
All I want for Christmas is Ikea button support - Built-in Drivers
I managed to get a driver working for the IKEA TRÅDFRI Shortcut Button (article number 403.563.81) And so here we go. I am...
Read more >
Ikea Shortcut Button : r/homeassistant - Reddit
Hello. Having an issue with one of these ikea buttons (E1812), i've managed to get it to pair with my zigbee dongle using...
Read more >
Zigbee Home Automation (ZHA)
IKEA Tradfri LED bulb E12 400 lumen, wireless dimmable warm white, chandelier opal, LED1649C5 ... IKEA Tradfri Shortcut Button (White), E1812. IKEA ICTC-G-1 ......
Read more >
New Ikea tradfri Shortcut Button? - Connected Things
That's funny I thought it might be case sensitive so I spelled it ZigBee. When it didn't work i didn't think changing B...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found