I’m using power monitor smart switch with openbeken flashed.
the smart switch doesn’t have backup power. homeassistant server has backup power.
it shows the last available value when the smart switch looses powere/goes offline. and continues to put that same value in the graph until power comes back.
I don’t want that. I want it to say offline/unavailable when it is offline. and enter null data or something in the graph.
It used to be like that, but I updated home assistant a few days ago from 2025.4.x to 2026.x it started doing that after the update.
Let me know if I should provide any additional data.
A device will rarely report it being offline, so the only way for HA to know it is offline is if it does not send an update, but when is it overdue for an update?
Some device only report once a day and others podt each couple of seconds.
Some integrations, like Z2M and Z-wave, have settings to define how long to wait before considering a device offline.
Some integrations even have a setting to diffentiate between mains powered and battery powered devices.
Thanks for your reply.
These devices are integrated via mqtt.
Is there a way I can set time-out?
I have another question,
Is there a way to set the frequency of graph entry?
mqtt sends data every second, but for some sensor, I don’t need to record it every second.
I do not use MQTT, but there should be an option somewhere in both ZHA and Z2M, and it might even be split on mains powered and battery powered.
Regarding the recording, then you probably need to make a template sensor and record that instead.
There should be some threads about that on the forum.