-
Notifications
You must be signed in to change notification settings - Fork 203
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
Some Ubisys devices moved to ota.zigbeeOTA and no longer pick up updates #329
Comments
I'll update this table ones done testing |
See #317 for the reason |
That doesn't make much sense to me? If the ones fetched via ota.ubisys are the same ones as the ones manually available for download, there should be no difference (at the time the firmware as added, there is obviously a newer one available now) We should at the very least I think, switch them all over to ota.zigbeeOTA then? I'll still round of my tests with switching them back to ota.ubisys though. I wonder if they user just got unlucky and he checked while ubisys was in the process of publishing them firmwares. |
Something that also comes to mind, some devices need a 2 stage update as ubisys swapped firmware formats at some point, if you check the index used by ota.ubysis the older format one is listed as ota1.zigbee, AFAIK the still works when using ota.ubisys but it's probably broken with ota.zigbeeOTA as we cannot add multiple firmwares for a single devices AFAIK. e.g. 10F2-7B01-0000-0006-01110206-spo-fmd.ota.zigbee 256748 5018ea0bf877e458ce78163e45f425dda7db16fb2190d3464dcb2fa496b0bdbc IIRC the special logic to deal with that is here: |
Some more references as to why we also resole older images: I think the regex to pick the proper image is probably not 100% correct and somehow @WhistleMaster hit case where it returns the wrong image. I do think we should figure out why it was not working for them and revert to ota.ubisys, as the current ota.zigbeeOTA approach will result in an incomplete upgrade path. |
Updates one of each devices with ota.ubisys and they all still seem to work. |
Reverted it! |
@WhistleMaster do you still happen to have one of those devices that you haven't updated yet? |
Sure ! Where should I add those extra log ? |
Above that line try adding:
It should snow up in the z2m log if you have debug level enabled, also make sure to switch to ota.ubisys while adding this. There is also a chance it will just work TM now, given Ubisys pushed a new fw earlier this week. |
I've added the debug output. I had to remove one ")" for the second line, otherwise I had an error. I get the following when checking for updates:
So I just added the following line instead:
And I get:
EDIT: Forgot to add the
|
OK that's interesting, You are currently on I did some digging and the major version changes were:
Assuming the device does indeed report
Can you replace L24 -> L35 with this instead:
And can you then past the debug log entry from when it's looping over the images, i would expect at least 2 loops to happen. |
I've made the changes, and I get the following in the log: _zigbee2mqtt_logs.txt |
Ok this is weird, your current.imageType returns
So it seems you somehow have an older bootloader (based on the change logs) with a newer firmware image. The one you updated with the manually downloaded firmware already, what does that device report for imageType after the update? |
Well, I did not had the time to update with the manually downloaded firmware, so all my devices are like that as the PR was reverted. Is there another way to update them then ? |
I see, I was looking at the commit and it basically has the same imageType with the same file. So I'd be a bit surprised if that one matched while via ota.ubisys it didn't. I guess we could test the following:
@Koenkk I'm guessing if the image type doesn't match the device would reject it correct? That would rule out option 1. |
And by looking at the Firmware build date, all of them are 20191127-DE-FB1 but with Firmware version 2.0.0 |
build_date never changes on any of mine when updating, I think it's like batch number when they were made. I have 2x S2, both went through the 3 stage update process, one has date 20191128-DE-FB1 and one has 20200327-DE-FB1. The weird thing is that yours seems to be reporting an older imageType but already on 2.0.0 fw You can track the fw/image type changes via the changelog https://www.ubisys.de/en/support/firmware/changelog-s2/ 0x7B23 and 2.0.0 never appears anywhere :/ |
Indeed... that's really weird. Before, all my S2 were used with Deconz and updated with Deconz. I hope I can find a way to update them with Z2M. If there were a way to "upload" a file directly to it, that could maybe help. |
Interesting, I wonder if deconz somehow skipped the bootloader bit of an OTA image, although I'm not even sure that's technically possible (@Koenkk ?)
I don't think we can force a particular firmware, also a question for Koen. Even if we somehow do force send it a file, I think the device would just reject it. |
This is possible with the local OTA index: https://www.zigbee2mqtt.io/guide/usage/ota_updates.html |
I guess @WhistleMaster can try and force downgrade using http://fwu.ubisys.de/smarthome/OTA/release/10F2-7B23-0000-0006-0192020D-spo-fms2.ota.zigbee which is the only one of the correct image type. Once that it done, the regular OTA should work again. Assuming the device accepts that one. If that works, would there be a way to have ota.ubisys somehow also have a force option? I think something probably went wrong when they were updated via deconz |
Thanks for the help. I've made a local index like that and add it to the Z2M configuration.
and changing Restarting Z2M and checking for firmware, I get the information that an update is available. I click on "Update firmware device" and after a bit I get:
|
You still need to compile the .ts to a .js file... I'm not 100% sure on the steps but:
@Koenkk did I miss a step ? |
It looks like that it gets my local index as it says that a firmware is available, isn't it ? But I think that the device does not accept the firmware... I've tried to change the local index to put the latest version available and I get:
So I manually changed the imageType to 31523 instead of 31539 but I get:
|
Not sure it picked up the change, as http://fwu.ubisys.de/smarthome/OTA/release/10F2-7B23-0000-0006-0192020D-spo-fms2.ota.zigbee is imageType 31523 / 0x7B23 |
If I simply revert back to the original ubisys.ts, I get my old error that the firmware is newer and can't be updated even with my local index. |
I'm not sure how to read it, that why I let you add the logging ealier. |
@sjorge those are the correct steps indeed! |
I’m using the Docker version, I guess that I can’t really follow the same steps, do I ? What I don’t understand is why it seems that it takes my local index when modifying the ubisys.ts file through Docker console on my Z2M container ? I can “play” with the local index and it changes the error I get when I try to update. |
I got a reply from Ubisys:
I'm a bit lost as I'm not sure what should be done now. It seems not possible to have a different image type if I have the 2.0.0 firmware. I don't know what to do now and try to update the devices. What about ignoring the imageType and force the latest firmware ? It would be great to have a possibility to send a new firmware from the dashboard UI, by selecting it with an input file and a checkbox option to "force". What are your thoughts on that one ? |
So they basically confirm that the combination of requested imageType and firmware version 2.0.0 should be impossible. If the device is willing to downgrade you could try and install the 1.9.2 firmware and see if it wants to upgrade later on. I'm not really sure how to proceed. |
Additional answer from Ubisys:
Yes indeed, this is what I tried first. The problem is somewhere else but I don't know where 😅 |
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 |
Seems a while ago some of the Ubisys devices moved to the ota.zigbeeOTA provider... I don't understand why.
We have a zigbee ota.ubisys that is working fine, this weeks updates are not showing up for all devices using ota.zigbeeOTA but are showing up for those with ota.ubisys.
e.g.
Once the update is install correctly I will switch them all back to ota.ubisys locally and report back if they all pick up the updates.
Once swapepd to ota.ubisys
The text was updated successfully, but these errors were encountered: