home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.15k stars 31.13k forks source link

Ikea Tradfri Dimmer Buttons no longer function after upgrading from 2022.5 to 2022.7 #74783

Closed lkroeker closed 2 years ago

lkroeker commented 2 years ago

The problem

The devices are still connected to the network, but button presses are not being received/passed to HA from ZHA.

I'm able to trigger the built-in LED on these switches from within the ZHA control panel in HA, but the buttons on the device do not translate to any actions/events that I can see.

All my other Zigbee devices seem to be working normally. ST buttons, Aqara Temp/Hum Sensors, ST Motion, & Aqara Motion Sensors, Zigbee Plug.

A reboot/upgrade from 2022.7.1 to 2022.7.2 didn't help.

What version of Home Assistant Core has the issue?

Home Assistant 2022.7.2

What was the last working version of Home Assistant Core?

Home Assistant 2022.5.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ZHA

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

elupus commented 2 years ago

I think the event format changed in the .6 release. Maybe the events are still there but your automations are not reacting?

lkroeker commented 2 years ago

I don't see anything in the notes about zha, zigbee or events in .6?

It's only the button presses that aren't working, HA is still receiving battery info etc. Really weird. EDIT: just double checked and the event to turn the device 'identify led' on shows up in the log, but none of the button presses show up in the log at all.

The automations are set up using the 'device' directly. device_id: *** domain: zha platform: device type: remote_button_long_press subtype: dim_down

elupus commented 2 years ago

Ok, then it should work. Its how the event was formatted that changed and was partly reverted. Device triggers should still work.

lishan89uc commented 2 years ago

On a related note, my ZHA is also acting strangely. There are no errors however my linkind button just stops working out of the blue. My current work around is binding the light to the unnamed light group. but this way I lose a lot of the functionality.

edit: i have found that re-configuring a device that is malfunctioning works too. But it is Very annoying as you would have to keep re-configuring it every few hours.

runarbjorn commented 2 years ago

I am experiencing something similar with IKEA motion sensor. It's there but it doesn't update its status so it says it is constantly detecting movement

lishan89uc commented 2 years ago

Ok, then it should work. Its how the event was formatted that changed and was partly reverted. Device triggers should still work.

For me, the event itself is not showing up for my linkind button. However the button is clearly still working since binding the light to the button's light group still turns it on and off.

austinbeam commented 2 years ago

As another data point, same issue here after upgrading from 2022.6.6 (working) to 2022.7.2 (broken). Similar to @lishan89uc, I am not seeing the zha_event trigger for these devices, though others are working fine. Happy to provide any other details if it's helpful.

austinbeam commented 2 years ago

Rolling back to 2022.6.6 for now, as the remotes immediately began working again after reverting.

waggettm commented 2 years ago

Another data point - also working fine in 2022.6.5, broke when I updated to 2022.7.2. Also not seeing the zha_event trigger for the devices. Reverting back got them working immediately for me as well.

dmulcahey commented 2 years ago

Can a few of you enable full debug logging for zha, the libs and HA core and post debug logs from the missing event interactions please?

waggettm commented 2 years ago

@dmulcahey I've attached debug logs from both a prior working version and version where it's broken. If I grabbed the wrong logs or this is somehow not what is needed, let me know.

debuglog_2022_7_2.txt debuglog_2022_6_5.txt

At a glance, I think the relevant part is

2022-07-10 15:47:29 DEBUG (MainThread) [bellows.ezsp.protocol] Send command nop: () 2022-07-10 15:47:29 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 5 (nop) received: b''

Right after this, when on a prior version where it was working, it went into message handling and decoding for the "off" command as I was clicking the button off.

When broken, in 7.2, I see no further handling, and the logs move on to other unrelated tasks. Hope this is helpful.

lishan89uc commented 2 years ago

Can a few of you enable full debug logging for zha, the libs and HA core and post debug logs from the missing event interactions please?

log.txt Sorry for the long log I am not sure how to filter the logs. like waggettm did. There are little to no information pertaining to the specific device Linkind Switch Interesting enough pressing identify on home assistant will still trigger the red led on the button for me as well. However pressing the button does not output any events. Also I am attaching a picture of of the automatically generated zigbee group that can control whatever light you put into it. Even though there is no event output PowerToys_nYWq5XDKyX firefox_CYLVkOkXYH firefox_KxIao6VXED

{
  "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=4456, 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",
        "0x0b05",
        "0x1000",
        "0xfd01"
      ],
      "out_clusters": [
        "0x0003",
        "0x0004",
        "0x0006",
        "0x0008",
        "0x0019",
        "0x1000"
      ]
    }
  },
  "manufacturer": "lk",
  "model": "ZBT-DIMSwitch-D0001",
  "class": "zigpy.device.Device"
}
met67 commented 2 years ago

Same behaviour here, with a Tradfri ON/OFF Switch...

yuric5555 commented 2 years ago

I think this might be the same issue I'm having with my Tradfri 5 button remote. I put a ticket in before I noticed this post (#75035)

puddly commented 2 years ago

@lkroeker @met67 what coordinators are you using?

runarbjorn commented 2 years ago

Sonoff zigbee bridge flashed with tasmota

bwarman commented 2 years ago

Ikea Tradfri dimmer switch not working now in ZHA. It shows up fine but the button presses are not detected in 2022.7.3 (which I just updated from 2022.6.7.

met67 commented 2 years ago

@lkroeker @met67 what coordinators are you using?

Hacked Silvercrest (Lidl) Gateway connected via Ethernet

lishan89uc commented 2 years ago

@lkroeker @met67 what coordinators are you using?

GoControl CECOMINOD016164 HUSBZB-1 USB Hub

lkroeker commented 2 years ago

@lkroeker @met67 what coordinators are you using?

HUSBZB-1 as well.