Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.04k stars 1.67k forks source link

After OTA Device reports old firmware version #14891

Closed stu1811 closed 1 year ago

stu1811 commented 1 year ago

What happened?

I updated an Inovelli VZM31-SN via the OTA function from 2.06 to 2.07. The OTA screen after the update still shows 2.06. I tried doing a force remove, factory reset of the switch, and then pair. Switch included but still showed the old version. I ran the check update function again in debug and it reports the current version is 2.07.

Debug 2022-11-08 20:26:39Is new image available for '0x385b44fffee8eb39', current '{"fieldControl":0,"manufacturerCode":4655,"imageType":257,"fileVersion":16908807}', latest meta '{"fileVersion":16908807,"url":"[https://files.inovelli.com/firmware/VZM31-SN/Beta/2.07/VZM31-SN_2.07.ota"}'](https://files.inovelli.com/firmware/VZM31-SN/Beta/2.07/VZM31-SN_2.07.ota%22%7D%27)
Debug 2022-11-08 20:26:39Update available for '0x385b44fffee8eb39': NO

image

I removed the switch from Z2M again and added to ZHA. The ZHA toolkit reports the correct version. The version numbers by ZHA and Z2M are in different bases. 16908807 = 0x1020207 image

What did you expect to happen?

I expected the firmware version reported after the update to be 2.07

How to reproduce it (minimal and precise)

Update an Inovelli VZM31-SN and see if the new version is reported on the OTA page.

Zigbee2MQTT version

1.28.2

Adapter firmware version

20220928

Adapter

Sonoff USB Dongle 3.0 - P

Debug log

No response

epower53 commented 1 year ago

I see similar, but slightly different behavior. Running 1.28.2 in standalone mode. Whenever Inovelli pushes a firmware update, I see 1 revision previous. For example, they pushed 2.06, and my z2m UI reported 2.05 was available. Now that 2.07 is published, I was able to update to 2.06, which my z2m UI claims is the latest. Using the debug console confirms that my switch has 2.06 installed, now.

ThreeFN commented 1 year ago

I have discovered a kludgy work around. I can confirm this solution works for Inovelli and IKEA devices.

  1. From the dev console for the device select genBasic / swBuildId and read the value (returns the correct firmware version below).
  2. from the device 'main page' select the yellow 'reconfigure' button. The correct firmware version and build date will show.

Not sure how this is diagnostic to the bug in Z2M. Completing either step 1 or 2 on their own will not update the firmware version to the correct number, only doing the dev console then reconfig in that order will cause the main page to update.

stu1811 commented 1 year ago

I have discovered a kludgy work around. I can confirm this solution works for Inovelli and IKEA devices.

  1. From the dev console for the device select genBasic / swBuildId and read the value (returns the correct firmware version below).
  2. from the device 'main page' select the yellow 'reconfigure' button. The correct firmware version and build date will show.

Not sure how this is diagnostic to the bug in Z2M. Completing either step 1 or 2 on their own will not update the firmware version to the correct number, only doing the dev console then reconfig in that order will cause the main page to update.

That worked for my Inovelli too. Thanks!

github-actions[bot] commented 1 year ago

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

alexeiw123 commented 7 months ago

I have discovered a kludgy work around. I can confirm this solution works for Inovelli and IKEA devices.

  1. From the dev console for the device select genBasic / swBuildId and read the value (returns the correct firmware version below).
  2. from the device 'main page' select the yellow 'reconfigure' button. The correct firmware version and build date will show.

Not sure how this is diagnostic to the bug in Z2M. Completing either step 1 or 2 on their own will not update the firmware version to the correct number, only doing the dev console then reconfig in that order will cause the main page to update.

Nearly two years later and I just ran in to this when updating some schneider electric fan controllers. This helped me too.