ha-average
ha-average copied to clipboard
Graph drops on home assistant reboot
This issue can be observed on the following graph:
"X" marks spot the HA reboots. It seems that for sensor of undefined values it calculates the avarage like:
10℃ + undefined (0℃) / 2 = 5℃
I'd be nice to have a config option that will allow to exclude undefined sensor from the calculation. As a a result it should give:
10℃ + undefined (omitted) / 1 = 10℃
Duplicate of #99?
Looks like the same issue. Should I close it or it can be merged/linked somehow?
I think the restart related part of this issue is related to #98. Though I wasn't able to figure out the root cause.