Ikea tradfri Button stuck on updating Z2M

The current situation is this:
image
I tried to go the
HA → Settings → Add-ons → Zigbee2MQTT → Open UI → OTA route this did not work the result of it is this:

info <small>2023-11-26 14:47:59</small>`Updating '0x0c4314fffef74227' to latest firmware`

info <small>2023-11-26 14:49:19</small>`MQTT
 publish: topic 'zigbee2mqtt/0x0c4314fffef74227', payload 
'{"action":null,"battery":100,"linkquality":216,"update":{"installed_version":587699761,"latest_version":604241926,"state":"available"},"update_available":null}'`

info <small>2023-11-26 14:49:19</small>`MQTT
 publish: topic 'zigbee2mqtt/bridge/response/device/ota_update/update', 
payload '{"data":{"id":"0x0c4314fffef74227"},"error":"Update of 
'0x0c4314fffef74227' failed (Device didn't respond to OTA 
request)","status":"error","transaction":"29vl8-1"}'`

error <small>2023-11-26 14:49:19</small>`Update of '0x0c4314fffef74227' failed (Device didn't respond to OTA request)`

What I also tried is:
Restarting z2m → [no effect]
restarting hass → [no effect]
repairing the button by force removing via z2m It stops the update on the hass side and after repairing the update is gone until I check for an update via z2m then the update starts and gets stuck immediately on what you can see on the screenshot.

What do I do, how can I solve this?

Okay, I think I figured it out. What I needed to do was disable the device on the HASS MQTT panel, this screen:

Afterward I repaired the device and now low and behold if I do the check for update HASS did not spring into action wanting to update it.

Now when I pressed the update button in z2m I get a dialog if I want to do the update I press okay and the update starts.

1 Like

How did you repair the device?

What do you mean by “repaired the device”?

I’m not sure if this is what OP meant by “re-paired” but this is what worked for me.

  1. Go to the device MQTT page
  2. Click the pencil “edit” button in the top right to toggle the enable/disable to “disable”
  3. Go to the Z2M “OTA” page and find that the device shows OTA available
  4. Click the Z2M “Enable Join” button
  5. Open the 5-button controller and click the pairing button 4 times to enter pairing mode. The device should disappear then reappear in Z2M
  6. Click the firmware upgrade button. It should start.
  7. Click any button on the remote every few seconds to keep the remote awake
  8. Re-enable the device in HA
1 Like