Closed kris-lwks closed 2 years ago
I could set a custom value for expire_after to most of the sensors. This should result in an unavailable state in case of communication issues. Is this what you are looking for?
That should work I think. If we can't request data from the DTU it is safe to assume the data is unavailable.
In 0.2.0 I've added option expire-after. With it you can specify time when entities shall become unavailable in case of communication issues (no updates sent to Home Assistant). Here is an example chart for some entity with communication loss:
Upon disconnecting the PV installation Hoymiles microinverters shut down and most of the MQQT parameters should change as the power production ceases.
What actually happens is that Home Assistant continues displaying the last known value (as on attached screenshot) and the modbus error appears in hoymiles-mqtt. I would expect that some of parameters, like temperature, are still valid and some should be either 0 or "no data" (like power production).
Let me know if there is anything else I can try to test. I am very new to modbus but it got my interest and I can dig into this problem some more as I intend to connect these metrics with power consumption metrics (for instance from Zamel MEW-01).