Koenkk / zigbee2mqtt

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

"Last Seen" is broken in several ways #23820

Open Ltek opened 1 month ago

Ltek commented 1 month ago

What happened?

I've only used Z2M for about a year and happens with at least the last 3 releases since I started really using (adding devices) Z2M. This problem occurs with all my 22 devices so its not a device issues : Bosch Motion, Aqara Motion, Tuya Humidity/Temp, Tuya Covers, and more

Last Seen updates on all devices even if the Device Map shows them not connected. Many show Last Seen but never update the device parameters... so clearly Z2M is not "seeing" (communicating) with them otherwise the temp, motion, etc would be updated.

What did you expect to happen?

  1. A user setting to enable Just Scene to update -only- when a parameter updates. This way we know for sure its communicating since devices can/do drop off even when LQI is in the 200s.

  2. A way to enable Z2M to write log file with -only- the device parameter updates (like a device activity log), including the 'just seen' with what is triggering 'just seen'.

How to reproduce it (minimal and precise)

Watch Dashboard for any device and see Last Seen change when no parameter has changed

Zigbee2MQTT version

1.39.1

Adapter firmware version

EmberZNet Coordinator revision 7.4.3 [GA]

Adapter

Ember

Setup

Homeseer on Windows

Debug log

No response

Ltek commented 1 month ago

here's another example of how its broken in another way... looks at the time stamp of Last Seen vs all the others... Last Seen is after 6 pm... its NOON! All other time stamps are correct (Yes, the PCs clock is sync'd via NTP and correct)

image