HandyHat / ha-hildebrandglow-dcc

Home Assistant integration for UK SMETS (Smart) meters pulling data from the DCC via the Hildebrand Glow API
MIT License
233 stars 34 forks source link

Data missing every day #307

Closed psblah closed 1 year ago

psblah commented 1 year ago

Describe the bug From 1-2AM every day the energy usage data is blank until late afternoon where it resumed. This worked fine before upgrading to the latest version (can't remember what version I was on before)

To Reproduce Easy for me to reproduce, check the screenshots, might not be affecting others though

Expected behaviour Data should be complete

Screenshots

image image image

Version What version of the integration and what version of Home Assistant are you running? 1.0.3 2023.2.2

Debug log

2023-02-10 13:24:40.222 INFO (MainThread) [homeassistant.setup] Setting up hildebrandglow_dcc
2023-02-10 13:24:40.222 INFO (MainThread) [homeassistant.setup] Setup of domain hildebrandglow_dcc took 0.0 seconds
2023-02-10 13:24:40.768 DEBUG (MainThread) [custom_components.hildebrandglow_dcc] Successful Post to https://api.glowmarkt.com/api/v0-1/auth
2023-02-10 13:24:40.773 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.hildebrandglow_dcc
2023-02-10 13:24:41.766 DEBUG (MainThread) [custom_components.hildebrandglow_dcc.sensor] Successful GET to https://api.glowmarkt.com/api/v0-1/virtualentity
2023-02-10 13:24:42.093 DEBUG (MainThread) [custom_components.hildebrandglow_dcc.sensor] Successful GET to https://api.glowmarkt.com/api/v0-1/virtualentity/*********/resources
2023-02-10 13:24:42.579 DEBUG (MainThread) [custom_components.hildebrandglow_dcc.sensor] Successful GET to https://api.glowmarkt.com/api/v0-1/resource/*********/tariff
2023-02-10 13:24:42.579 DEBUG (MainThread) [custom_components.hildebrandglow_dcc.sensor] Finished fetching tariff data in 0.350 seconds (success: True)
2023-02-10 13:24:42.579 DEBUG (MainThread) [custom_components.hildebrandglow_dcc.sensor] Successful GET to https://api.glowmarkt.com/api/v0-1/resource/*********/catchup
2023-02-10 13:24:42.579 DEBUG (MainThread) [custom_components.hildebrandglow_dcc.sensor] Successful GET to https://api.glowmarkt.com/api/v0-1/resource/*********/tariff
2023-02-10 13:24:42.579 DEBUG (MainThread) [custom_components.hildebrandglow_dcc.sensor] Finished fetching tariff data in 0.351 seconds (success: True)
2023-02-10 13:24:42.579 DEBUG (MainThread) [custom_components.hildebrandglow_dcc.sensor] Successful GET to https://api.glowmarkt.com/api/v0-1/resource/*********/catchup
2023-02-10 13:24:42.580 DEBUG (MainThread) [custom_components.hildebrandglow_dcc.sensor] Successful GET to https://api.glowmarkt.com/api/v0-1/resource/*********/catchup
2023-02-10 13:24:42.580 DEBUG (MainThread) [custom_components.hildebrandglow_dcc.sensor] Successful GET to https://api.glowmarkt.com/api/v0-1/resource/*********/catchup
2023-02-10 13:24:42.722 DEBUG (MainThread) [custom_components.hildebrandglow_dcc.sensor] Successfully got daily usage for resource id *********
2023-02-10 13:24:42.722 DEBUG (MainThread) [custom_components.hildebrandglow_dcc.sensor] Successfully got daily usage for resource id *********
2023-02-10 13:24:42.768 DEBUG (MainThread) [custom_components.hildebrandglow_dcc.sensor] Successfully got daily usage for resource id *********
2023-02-10 13:24:42.768 DEBUG (MainThread) [custom_components.hildebrandglow_dcc.sensor] Successfully got daily usage for resource id *********
2023-02-10 13:24:42.776 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.gas_cost_today (<class 'custom_components.hildebrandglow_dcc.sensor.Cost'>) is using state class 'total_increasing' which is impossible considering device class ('monetary') it is using; expected None or one of 'total'; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
2023-02-10 13:24:42.789 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.electric_cost_today (<class 'custom_components.hildebrandglow_dcc.sensor.Cost'>) is using state class 'total_increasing' which is impossible considering device class ('monetary') it is using; expected None or one of 'total'; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.

Additional context Add any other context about the problem here.

psblah commented 1 year ago

This seems related to the issue of not being able to backfill data. Closing this until I can investigate it further and report it properly