Koenkk / zigbee2mqtt

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

Wrong firmware version displayed #23279

Open Diaoul opened 4 months ago

Diaoul commented 4 months ago

What happened?

Zigbee2MQTT is showing outdated firmware information on paired devices:

Not working :-1:

  1. I had a Legrand 067773 paired to zigbee2mqtt showing version 0x2a
  2. I removed it and paired it to the Legrand Gateway, it's now showing version 0x46 (70 in decimal)
  3. I removed it and paired it again to zigbee2mqtt, it's showing the incorrect version 0x2a

Sometimes, it happened that I updated some devices outside zigbee2mqtt and when I paired them again they were still showing old firmware information.

Working :+1:

Now if I do the same thing, but shut down zigbee2mqtt when the device is not paired anymore, it works:

  1. I had a Legrand 067773 paired to zigbee2mqtt showing version 0x2a
  2. I removed it and paired it to the Legrand Gateway, it's now showing version 0x46 (70 in decimal)
  3. I stopped zigbee2mqtt then started it again
  4. I removed it and paired it again to zigbee2mqtt, it's showing the correct version 0x46

:point_right: Obviously I don't want to do that for all my devices :grimacing:

What did you expect to happen?

The correct firmware version is displayed without the need for a time-consuming exercise.

How to reproduce it (minimal and precise)

This would be hard to reproduce... However, I'm interested in knowing when is a firmware version refreshed from the device? It smells like a cache invalidation issue.

Zigbee2MQTT version

1.39.0

Adapter firmware version

20230507

Adapter

tube_zb_gw_cc2652p2_poe

Setup

Home Kubernetes

Debug log

No response

Diaoul commented 4 months ago

@Koenkk could this be causing other issues like on checking firmware versions online and missing out on potential updates? :thinking:

Loic691 commented 1 month ago

+1 Legrand battery device have very very strange issues.... It's not working at home... Battery drain, event not catched, pairing issues,....