I am using a lot of esp’s programmed with deepsleep.
They are all shown as offline which is sometime frustating.
Can we make it possible to showup as deepsleep mode.
We can than see which are in real offline.
I am useing solar end battery. When battery are not charged enough they are in real offline and not in sleep mode.
The device disconnects from the network when it sleeps as the wifi module is shut down. There is no way to differentiate this from a device that has disconnected for some other reason.
There would have to be some way for the ESP device to send an “I’m going to sleep now” signal. Not sure such a thing exists, or if there’s an event which could be caught to create one. Then you’d need a matching “I’m awake now” signal. Then HA would need to know how long to expect it to stay asleep before considering it truly “unavailable.”
Admittedly, I have no clue if any of this is practical, but I don’t like to say impossible.
I guess where I was going with my comment is that if the main underlying issue is battery levels, then some battery level monitoring might help the situation more generally.
I have some of my solar projects wake up, check if their level is above x% if so, do work, if not sleep for a long time and hope you get more solar before the next wake.
OK, I think i will made a workaround. Testing if data is comming in within a timeframe. Scanning all ESP’s and if not than sending a red flag. However I have to find-out how to do this
Thanks for the reply’s.