fhem / INDEGO

GNU General Public License v2.0
2 stars 1 forks source link

update battery related readings also if unchanged #5

Closed siggel closed 2 years ago

siggel commented 2 years ago

Proposal: update battery related readings also if unchanged

Behavior before change: readingsBulkUpdateIfChanged(...) Behavior after change: readingsBulkUpdate(...)

Reasoning: Updates of battery readings are triggered by a "set MyIndego operatingData" command. The response is coming in an asynchronous fashion some time later, so there is no chance to react to the result of the command if there is no event for unchanged readings. E.g. that helps improving the timing accuracy for plotting a battery curve, see attached plot. The areas marked with yellow marker should instead see a horizontal battery line (dark red) until charging starts (charging curve in light red). For that plot operatingData is requested on each major state change and only every 3 hours inbetween.

plot