Koenkk / zigbee2mqtt

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

Zigbee devices report power even during power outage #23860

Open strybushnyi opened 1 week ago

strybushnyi commented 1 week ago

What happened?

During the power outages (which we have here in Ukraine a lot) zigbee devices still report power, current and voltage. These are not included into overall energy usage count. However, during 4-6 hours outages zigbee devices show last reported values.

What did you expect to happen?

If device is not available and/or does not report any updates during some time, show power/current/voltage values as NULL or N/A or 0 (which is not correct i think)

A lot of users may use this for determining whether the power is present from the city grid, however, since the values are stuck, it is not possible

How to reproduce it (minimal and precise)

Plug off any plug/socket/energy monitor and watch voltage

Zigbee2MQTT version

1.40.0-1

Adapter firmware version

20240315

Adapter

SLZB-06

Setup

HASS OS

Debug log

No response

Ramotny commented 1 week ago

This is general issue that also concerns battery powered devices - if they switch off Z2M continuously reports last status/data instead of "unreachable". I've noticed it on many units like 3phase monitor, humidty sensors and so on. Very annoying. Below temperature reading and battery out. Z2M_wrong_report_2