Power Value still shows up after Connection get lost
What happened?
If the inverter no longer has a connection to the OpenDTU, the last indication of power is still displayed until a new value comes in.
To Reproduce Bug
Inverter is not available
Expected Behavior
Set Power to 0W after 30 seconds or variabel time if no connection to the inverter is established
Install Method
Pre-Compiled binary from GitHub
What git-hash/version of OpenDTU?
422d489
Relevant log/trace output
No response
Anything else?
No response
confirmed, that's happening to me as well. Would be great to get a variable after that the timeout get's reseted to 0. 30 Seconds could be too low.
Isn't it better to check the variable "reachable" and as soon as it is "0" set the power to zero? Instead of setting a willy-nilly time intervall.
And also compare https://github.com/tbnobody/OpenDTU/discussions/498
Your described way is a workaround, but I think this should be solved on the opendtu end. It should be fairly easy, check sunset, power and connectivity to the inverter and send a zero.
I can confirm this bug. This is especially problematic if data gets reported via MQTT because then ghost production is being recorded:

This happens with prometheus metrics endpoint also. And if you summarize values over time within grafana this values became a little to high. btw - this happens to most of the values.
Duplicate of #498
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.