-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Philips Hue bulb firmware OTA update "successful" but firmware is still the old one #8757
Comments
Experiencing the same issue with the same firmware version; model for me is https://www.zigbee2mqtt.io/devices/9290012573A.html#philips-9290012573a. I've confirmed the newer firmware is successfully downloaded and verified, then OTA happens like @LeoCal describes but z2m reports that the firmware was "upgraded" from the current version to the same version. I'm wondering if this might be similar to #8719 in terms of a solution - will try upgrading via the previous firmware since that worked for me previously on other Hue models. Edit: yes, upgrading to 20191218 (1.50.2_r30933) first via https://github.com/Koenkk/zigbee-OTA/blob/4af6b2a99517f57c0111566a9735b40ecdbc2af7/index.json allowed the latest firmware upgrade to succeed. So the solution is the same as #8719 with a stepped upgrade process; it'd be interesting to see if the official Hue process is the same or if they have some extra process that allows direct upgrades. |
I have reading that the Philips HUE HUB is doing the update in steps if its one very old firmware version but i cant remember where i have reading that but i think its the right way to going first one step higher and rebooting the light and then rolling the newer one and its working. |
Thanks @davidjb and @MattWestb for your input on this, much appreciated! |
Hi @davidjb, can I ask you how you get the mapping between your exact Philips Hue bulb model and the firmware inside the index.json file? Thanks, |
Ok, I might have found a way. |
@LeoCal Because of how const url = 'https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/index.json'; to point to an older commit of const url = 'https://raw.githubusercontent.com/Koenkk/zigbee-OTA/4af6b2a99517f57c0111566a9735b40ecdbc2af7/index.json'; At that point, restart zigbee2mqtt and you'll be now upgrading all Philips Hue firmwares to their next-to-last versions. When done, restore Enabling debug logging is a good idea too - it helps monitor internal details and progress during the upgrade & you can confirm the right version of |
Hi @davidjb, My problem is that I don't know where to find the zigbee-ota.js file to replace the link pointing to the previous firmware. I am on HassOS 2021.9 on a Rpi 4b.
Probably mine is a stupid question because I think you were referring to the source files. Thank you |
Thanks @davidjb, that worked for me! Hi @liuk4friends, you can find that file at the following location on your instance: In the first line of that file, you can apply the changes suggested by David. Cheers, |
Unfortunately, I can't use that procedure. @davidjb, May you help me? Any suggestions that are helpful in my situation? @Koenkk, Do you think it is possible to modify the OTA procedure of zigbee2mqtt in order to choose the firmware to install? Beyond my problem, it could be an added value in different scenarios ... thanks in advance |
@liuk4friends I imagine you're using https://github.com/zigbee2mqtt/hassio-zigbee2mqtt as an add-on in Home Assistant, which means your z2m installation is inside a Docker container. This makes things interesting since Docker containers' files are designed to be immutable (with the exception of config files on volumes). I don't use this environment myself but I see you having two options:
Hope that helps. |
Thanks @davidjb for the valuable advice. Regarding the first hypothesis, I verified that I can disable the protection system of the "SSH Terminal" add-on and then access the docker commands. The second hypothesis I have to discard it because I don't have other hardware where to install z2m and mosquitto. Honestly I was hoping for something simpler. |
No worries @liuk4friends. Fwiw, installing z2m locally on a Mac directly is possible (e.g. without Docker); you can install and run with Otherwise, if you’ve got/get a spare MicroSD card for your Pi, you could flash Raspian and use that as a temporary environment, using the official instructions from https://www.zigbee2mqtt.io/getting_started/running_zigbee2mqtt.html to directly install. |
Thanks @davidjb you gave me hope. And here I have the first problem. How do I install version 1.20.0 which works perfectly instead? Thanks again |
@liuk4friends installing an older version is a case of switching versions in git. In the installation instructions, just before you run |
Hi @davidjb @LeoCal managed to update his by proceeding first with the 20191218 version and then with the 20210331. Can you tell me how I can retrieve the links of these intermediate versions? |
@liuk4friends Excellent, glad you've got a working z2m. The previous commit in zigbee-OTA has the older Philips Hue firmware you're looking for, which is the instructions mentioned in my comment above. If you've edited |
You @davidjb were absolutely right! I just managed to update the second bulb to firmware 1.50.2_r30933. As soon as I finish with the second one, I will edit the zigbee-OTA.js file again by re-inserting the link to the latest master version of the library. I thank both you @davidjb and @LeoCal for getting me on the right path to solve this problem! edit: Mission accomplished! |
Hi all, noob here so please excuse any stupid questions upfront. My setup is a HA supervised installation on Debian, Z2M installed under HA. I have 2 Hue White Ambiance E14 bulbs, that I bought second hand. Both work fine under Z2M. I tried to update the firmware via OTA. 1 was updated immediately, the other won't no matter what I try. I found this thread today outlining this specific issue. Turns out the non-updating bulb has some 2018 firmware. So I updated my /opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/lib/ota/zigbeeOTA.js as instructed, to point to an older respository and ran the update again. No luck. I tried an even older repository, no joy. The update runs completely but then the bulb just shows the old firmware again. Any ideas what I might still try? This is no big thing for how I'm using the bulb, I don't need (I think) any newly introduced firmware options, but I just wonder why I can't get this to work. I can't find a log file that shows anything about the update... any pointers there? Many thanks in advance! |
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 |
@OttoL2 You might want to ensure you've restarted zigbee2mqtt to ensure your changes to You could also try a local or separate installation of z2m with a separate Zigbee network (use a separate dongle or borrow your existing one temporarily) - I've found this to be easier to ensure that the modified (unstale) |
Could someone please put list of "const url = 'https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/index.json';" revisions which can allow to upgrade (revision by revision) my bulbs? |
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 |
Got the same issue with the hue go … |
Same issue here using HassOS, would be awesome if we could have a drop down or something in the OTA UI to be able to select previous configs, or just a setting to add our own urls. |
Same issue here, but not on the bulbs but the remotes. I think simulating the multi-step upgrade process would be quite awesome as well. Allow the user to select the firmware (e.g. from a dropdown). Whenever an upgrade is known to cause problems when jumping versions, this could be prefilled with the latest possible version that you can upgrade directly to. Alternatively, do the step in the background, similiar to what the hue bridge is doing. |
Thank you so much for the workaround @davidjb, it's working like a charm! 🎉 |
hello, I want to update a bulb model 8718696598283 version 1.15.2_r19181 to 1.88.1 can you tell me how to update to 1.88.1 I tested with "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/4af6b2a99517f57c0111566a9735b40ecdbc2af7/index.json" but it doesn't work Thanks for your help |
Problem solved by switching to zigbee2mqtt version 1.23 with the URL 'https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/index.json'; Update process 1.15.2_r19181 -> 1.50.2_r30933 OK -> 1.88.1 OK Thanks |
Indeed this works! In the latest version of z2m all of a sudden the firmware of the hue w&a could be updated, first to 1.50something and then to the latest version. So finally the desired result, thanks z2m team!! |
Thanks for confirming this @jojeju9428 @OttoL2 In z2m 1.23.0 the two-step upgrade process was added which has fixed this. Assuming this can be closed now. |
Hi, got anymore invalid image with the hue go. Current version: 1.23.0-1 https://www.zigbee2mqtt.io/devices/7146060PH.html#philips-7146060ph |
Hello, I have a new update problem on a Phillips Hue E14 bulb model 8718696695203 firmware 1.15.2_r19181 I can't update bulbs with Zigbee2MQTT 1.24 I tried with the URL "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/4af6b2a99517f57c0111566a9735b40ecdbc2af7/index.json" and "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master /index.json" Error log Info Updating 'Lampe de chevet Joy' to latest firmware Info MQTT publish: topic 'zigbee2mqtt/Lampe de chevet Joy', payload '{"brightness":254,"color_mode":"color_temp","color_temp":366,"linkquality":null,"state":"ON","update":{"state":"available"},"update_available":null}' Info MQTT publish: topic 'zigbee2mqtt/bridge/response/device/ota_update/update', payload '{"data":{"id":"Lampe de chevet Joy"},"error":"Update of 'Lampe de chevet Joy' failed (Device didn't respond to OTA request)","status":"error","transaction":"di1xq-1"}' Error Update of 'Lampe de chevet Joy' failed (Device didn't respond to OTA request) Thanks for your help |
Problem solved by switching to link 'https://raw.githubusercontent.com/Koenkk/zigbee-OTA/9089fd7a5070110978a64d5e70a6ef9c5270aed5/index.json'; upgrade 1.15.2_r19181 to 1.50.2_r30933 next switch link 'https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/index.json'; upgrade 1.88.1 Update process 1.15.2_r19181 (20160906) -> 1.50.2_r30933 (20191218) OK -> 1.88.1 (20210331) OK Thanks |
How can I change this update links ? I have the same issue with hue go…. |
What happened
I tried to update the firmware of my Philips Hue bulb A60 E27/B22, which is currently running firmware version 1.29.0_r21169 (20170908). Firmware upgrade seems to progress smoothly and it reaches 100% after ~20minutes. I also see the "device_announced" message, the "update_succeeded" message, but the reported firmware version is still the old one.
I've tried both on the latest stable version of zigbee2mqtt HA add-on (1.21.1-1) and on the latest dev version (commit ac44a50 on GitHub), but I got the same result.
What did you expect to happen
I expected to see Philips Hue bulb updated to the newer version.
How to reproduce it (minimal and precise)
I simply followed the Zigbee2mqtt OTA update procedure explained in the main wiki.
I've reported the exact steps I followed here.
Debug info
Zigbee2MQTT version: 1.21.1-1
Adapter hardware: CC2531
Adapter firmware version: CC2531ZNP-Prod
The text was updated successfully, but these errors were encountered: