Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTA - Ikea Tradfri LED1949C5 OTA Fail #18904

Closed
shanelord01 opened this issue Sep 8, 2023 · 2 comments
Closed

OTA - Ikea Tradfri LED1949C5 OTA Fail #18904

shanelord01 opened this issue Sep 8, 2023 · 2 comments
Labels
problem Something isn't working stale Stale issues

Comments

@shanelord01
Copy link

shanelord01 commented Sep 8, 2023

What happened?

Globe model: https://www.zigbee2mqtt.io/devices/LED1949C5.html#ikea-led1949c5

All of my other globes of the same model and type (LED1949C5) have updated from 1.0.032 to 1.1.003 successfully. One of them required me to remove it from Z2M, reset it and re-add it for it to detect and load correctly.

I have tried to reset/re-add this last one multiple times and it has not worked.

What did you expect to happen?

The globe to be updated.

How to reproduce it (minimal and precise)

Restart the whole Home Assistant sever. Go to Z2M OTA tab and ask the globe to check for updates.

Zigbee2MQTT version

1.33.0

Adapter firmware version

6.10.3.0 build 297

Adapter

HA Yellow (EZSP v8)

Debug log

Debug 2023-09-08 16:49:00Received MQTT message on 'zigbee2mqtt/bridge/request/device/ota_update/check' with data '{"id":"IKEA Globe 6","transaction":"1j6cd-2"}'

Info 2023-09-08 16:50:00MQTT publish: topic 'zigbee2mqtt/bridge/response/device/ota_update/check', payload '{"data":{"id":"IKEA Globe 6"},"error":"Failed to check if update available for 'IKEA Globe 6' (Device didn't respond to OTA request)","status":"error","transaction":"1j6cd-2"}'

Error 2023-09-08 16:50:00Failed to check if update available for 'IKEA Globe 6' (Device didn't respond to OTA request)

Debug 2023-09-08 16:50:00Error: Device didn't respond to OTA request at requestOTA (/app/node_modules/zigbee-herdsman-converters/src/lib/ota/common.ts:202:15) at Object.isUpdateAvailable (/app/node_modules/zigbee-herdsman-converters/src/lib/ota/common.ts:259:25) at OTAUpdate.onMQTTMessage (/app/lib/extension/otaUpdate.ts:203:45)

@shanelord01 shanelord01 added the problem Something isn't working label Sep 8, 2023
@mikeg-de
Copy link

mikeg-de commented Oct 6, 2023

I am facing the same issue but with the IKEA TRADFRI 5 Buttome Remote (Type E1524/E1810). Upon further investigation other users, since a long time, reported the same issue and suggested to push any button to prevent the device going into sleep right before and once every second or so. Though, to no avail.

Using the Test Servers as suggested in the docs doesn't help either: https://www.zigbee2mqtt.io/guide/usage/ota_updates.html#using-the-ikea-tradfri-test-server

Per IKEAs release notes the latest update of my remotes is from January 2023:

Release Version: 1.23.1
25th Jan 2023
New features and changes in Accessories:
TRÅDFRI remote control and TRÅDFRI motion sensor 1.0 (24.4.5)
Product ID: E1524, E1810, E1525
◆ Optimised battery performance.
◆ Stability improvements.

In order to attempt to load the firmware locally (read the docs), I was searching for the download and contacted IKEA. I also tried to back engineer the URLs or find them inm the code. Finally, thanks to the deConz Rrepository I found:

  1. https://fw.ota.homesmart.ikea.net/feed/version_info.json
  2. https://fw.test.ota.homesmart.ikea.net/feed/version_info.json

However, the first is responding with an unusual 434 response code:

image

Downloading any referenced firmware file from the test server works. However, adjusting the URL for the regular one fails indicating the IKEA S3 or Cloudfront is basically faulty.

Test Server: http://fw.test.ota.homesmart.ikea.net/global/GW1.0/01.11.047/bin/10047227-1.2-TRADFRI-cv-cct-unified-2.3.050.ota.ota.signed

Normal Feed File: http://fw.ota.homesmart.ikea.net/global/GW1.0/01.11.047/bin/10047227-1.2-TRADFRI-cv-cct-unified-2.3.050.ota.ota.signed

This begs a few question like:

  1. Are the correct feed URLs referenced?
  2. Can the lack of SSL cause any issues?
  3. Why isn't the test server not working (Like not up to date as Last-Modified is Fri, 17 Sep 2021 08:15:45 GMT)?
  4. Which file, if any, from the test server could be used to locally reference the firmware update file?

Last Modified Response Header from Test Server
image

I will also attempt to contact the domain admin to omit contacting the IKEA support as they clearly are the wrong contact point.

Update
I managed to get the update running by locally referencing the firmware file.

image

"Googling" for a most recent firmware file and attempting to back-engineer the download links based on the Realease notes I found this:

Issues with TRADFRI remote control and latest firmware 24.4.5: zigpy/zha-device-handlers#2139

Firmware: http://fw.ota.homesmart.ikea.net/global/GW1.0/01.19.046/bin/159699-5.1-TRADFRI-remote-control-24.4.5.ota.ota.signed

Last-Modified of "Wed, 25 Jan 2023 10:48:58 GMT" matches the release notes:

Release Version: 1.23.1
25th Jan 2023
New features and changes in Accessories:
TRÅDFRI remote control and TRÅDFRI motion sensor 1.0 (24.4.5)
Product ID: E1524, E1810, E1525
◆ Optimised battery performance.
◆ Stability improvements.

Unfortunately the S3 bucket is not configured to list the directory but it seems rather recent firmware files are still available.

To your problem and a possible solution. I followed these steps to get the firmware update running:

  1. Modify "/config/zigbee2mqtt/configuration.yaml"
  2. Following these docs by appending ota: zigbee_ota_override_index_location: my_index.json
  3. Create file "my_index.json" in "/config/zigbee2mqtt/" and paste [{"url": "159699-5.1-TRADFRI-remote-control-24.4.5.ota.ota.signed"}]. Note that you must adjust the file name in accordnace to the next step
  4. SSH into your server and download the firmware file VIA wget -O 159699-5.1-TRADFRI-remote-control-24.4.5.ota.ota.signed http://fw.ota.homesmart.ikea.net/global/GW1.0/01.19.046/bin/159699-5.1-TRADFRI-remote-control-24.4.5.ota.ota.signed
  5. Restart Zigbee2MQTT
  6. Navigate to the OTA tab in Zigbe2MQTT
  7. Either check for firmware update or hit update on the device in question
  8. Right before confirming the firmware update, press any button on your device to ensure it's not in sleep mode and pressing the button every second until the update starts (see the progress bar)

Note: To my dismay the firmware update failed as it was aborted by the device. I guess you have to keep pressing a button once a while for several hours until the upload finished.

PS: Maybe this neat overview might help you:

zigpy/zigpy#660

Copy link
Contributor

github-actions bot commented Nov 6, 2023

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the stale Stale issues label Nov 6, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working stale Stale issues
Projects
None yet
Development

No branches or pull requests

2 participants