markgdev / home-assistant_OctopusAgile

Octopus Agile custom component for Home Assistant
Apache License 2.0
86 stars 33 forks source link

More robust handling of gaps in meter readings #63

Open d1964b opened 3 years ago

d1964b commented 3 years ago

If there are gaps in the meter readings available from Octopus the logs files can be quickly overwhelmed by huge numbers of "[OctopusAgile] Unmatched consumption ..." , errors. I may be unlucky but I have had gaps of at least a day in every month I've been on the Octopus Agile rate , sometimes it has been weeks before Octopus has done something about it. Currently I can suppress the errors by commenting out lines 377-380 in custom_components/octopusagile/OctopusAgile/Agile.py but I think it would be better if the code could simply handle this with a single daily message to the effect that consumption figures are approximate due to gaps in the meter readings. Thanks

no1knows commented 1 year ago

+1! image

Thanks for the pointer re commenting out the offending code, have done that as a stopgap.