HandyHat / ha-hildebrandglow-dcc

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

Patchy Data and 500 API Error #178

Closed HarvsG closed 2 years ago

HarvsG commented 2 years ago

Describe the bug API Calls fail in the log with a 500 error To Reproduce Steps to reproduce the behaviour:

  1. Set up the integration as described. I used HACS on 0.52 then switched to 'main' 0.60
  2. Expected behaviour A clear and concise description of what you expected to happen. The integration to make API calls that succeed

Screenshots If applicable, add screenshots to help explain your problem. image Getting very patchy data, there is no gaps in data in the bright app on my phone. Only just updated to 0.60 so will see if the data coverage works.

Version 0.52 and 0.60

Debug log

2022-03-27 14:57:59 DEBUG (SyncWorker_6) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/bba6dec4-bf04-4aa5-9b8a-cfc54d5d72bc/readings?from=2022-01-01T00:00:00&to=2022-03-27T23:59:59&period=P1Y&offset=-60&function=sum)
2022-03-27 14:57:59 DEBUG (SyncWorker_8) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/bba6dec4-bf04-4aa5-9b8a-cfc54d5d72bc/tariff)
2022-03-27 14:57:59 DEBUG (SyncWorker_7) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/5e2cd5bc-d5e1-4f86-be40-e94a400db442/readings?from=2022-01-01T00:00:00&to=2022-03-27T23:59:59&period=P1Y&offset=-60&function=sum)
2022-03-27 14:57:59 DEBUG (SyncWorker_3) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/5e2cd5bc-d5e1-4f86-be40-e94a400db442/tariff)
2022-03-27 14:57:59 DEBUG (SyncWorker_1) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/bba6dec4-bf04-4aa5-9b8a-cfc54d5d72bc/readings?from=2022-03-27T00:00:00&to=2022-03-27T23:59:59&period=P1D&offset=-60&function=sum)
2022-03-27 14:57:59 DEBUG (SyncWorker_4) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/9113d7b3-0a7e-4860-83e2-2d5f0e495f60/readings?from=2022-03-27T00:00:00&to=2022-03-27T23:59:59&period=P1D&offset=-60&function=sum)
2022-03-27 14:57:59 DEBUG (SyncWorker_2) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/5e2cd5bc-d5e1-4f86-be40-e94a400db442/readings?from=2022-03-27T00:00:00&to=2022-03-27T23:59:59&period=P1D&offset=-60&function=sum)
2022-03-27 14:58:00 DEBUG (SyncWorker_0) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/fde4b621-d9c1-4b6d-811b-d4102d88ab6e/readings?from=2022-03-27T00:00:00&to=2022-03-27T23:59:59&period=P1D&offset=-60&function=sum)
2022-03-27 14:58:09 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_year is taking over 10 seconds
2022-03-27 14:58:09 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_consumption_year is taking over 10 seconds
2022-03-27 14:58:09 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_tariff_standing is taking over 10 seconds
2022-03-27 14:58:12 ERROR (SyncWorker_6) [custom_components.hildebrandglow_dcc.glow] Glow response status code: 500 (https://api.glowmarkt.com/api/v0-1/resource/bba6dec4-bf04-4aa5-9b8a-cfc54d5d72bc/readings?from=2022-01-01T00:00:00&to=2022-03-27T23:59:59&period=P1Y&offset=-60&function=sum)
2022-03-27 15:02:59 DEBUG (SyncWorker_3) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/bba6dec4-bf04-4aa5-9b8a-cfc54d5d72bc/readings?from=2022-01-01T00:00:00&to=2022-03-27T23:59:59&period=P1Y&offset=-60&function=sum)
2022-03-27 15:02:59 DEBUG (SyncWorker_0) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/bba6dec4-bf04-4aa5-9b8a-cfc54d5d72bc/tariff)
2022-03-27 15:02:59 DEBUG (SyncWorker_2) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/5e2cd5bc-d5e1-4f86-be40-e94a400db442/readings?from=2022-01-01T00:00:00&to=2022-03-27T23:59:59&period=P1Y&offset=-60&function=sum)
2022-03-27 15:02:59 DEBUG (SyncWorker_6) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/5e2cd5bc-d5e1-4f86-be40-e94a400db442/tariff)
2022-03-27 15:02:59 DEBUG (SyncWorker_4) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/fde4b621-d9c1-4b6d-811b-d4102d88ab6e/readings?from=2022-03-27T00:00:00&to=2022-03-27T23:59:59&period=P1D&offset=-60&function=sum)
2022-03-27 15:02:59 DEBUG (SyncWorker_8) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/5e2cd5bc-d5e1-4f86-be40-e94a400db442/readings?from=2022-03-27T00:00:00&to=2022-03-27T23:59:59&period=P1D&offset=-60&function=sum)
2022-03-27 15:02:59 DEBUG (SyncWorker_5) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/9113d7b3-0a7e-4860-83e2-2d5f0e495f60/readings?from=2022-03-27T00:00:00&to=2022-03-27T23:59:59&period=P1D&offset=-60&function=sum)
2022-03-27 15:03:07 DEBUG (SyncWorker_7) [custom_components.hildebrandglow_dcc.glow] get 2: (https://api.glowmarkt.com/api/v0-1/resource/bba6dec4-bf04-4aa5-9b8a-cfc54d5d72bc/readings?from=2022-03-27T00:00:00&to=2022-03-27T23:59:59&period=P1D&offset=-60&function=sum)
2022-03-27 15:03:09 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_consumption_today is taking over 10 seconds
2022-03-27 15:03:09 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.gas_tariff_standing is taking over 10 seconds
2022-03-27 15:03:09 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.electric_tariff_standing is taking over 10 seconds
2022-03-27 15:03:11 ERROR (SyncWorker_6) [custom_components.hildebrandglow_dcc.glow] Glow response status code: 500 (https://api.glowmarkt.com/api/v0-1/resource/5e2cd5bc-d5e1-4f86-be40-e94a400db442/tariff)
2022-03-27 15:03:11 ERROR (SyncWorker_0) [custom_components.hildebrandglow_dcc.glow] Glow response status code: 500 (https://api.glowmarkt.com/api/v0-1/resource/bba6dec4-bf04-4aa5-9b8a-cfc54d5d72bc/tariff)

Additional context Add any other context about the problem here.

This error originated from a custom integration.

This error originated from a custom integration.

Logger: custom_components.hildebrandglow_dcc.glow
Source: custom_components/hildebrandglow_dcc/glow.py:133
Integration: Hildebrand Glow (documentation, issues)
First occurred: 2:30:15 PM (2 occurrences)
Last logged: 2:30:15 PM

Glow response status code: 500 (https://api.glowmarkt.com/api/v0-1/resource/5e2cd5bc-d5e1-4f86-be40-e94a400db442/readings?from=2022-03-27T00:00:00&to=2022-03-27T23:59:59&period=P1D&offset=-60&function=sum)
Glow response status code: 500 (https://api.glowmarkt.com/api/v0-1/resource/fde4b621-d9c1-4b6d-811b-d4102d88ab6e/readings?from=2022-03-27T00:00:00&to=2022-03-27T23:59:59&period=P1D&offset=-60&function=sum)
Logger: homeassistant.helpers.entity
Source: helpers/entity.py:747
First occurred: 2:30:12 PM (5 occurrences)
Last logged: 2:30:12 PM

Update of sensor.gas_tariff_standing is taking over 10 seconds
Update of sensor.electric_consumption_today is taking over 10 seconds
Update of sensor.electric_tariff_standing is taking over 10 seconds
Update of sensor.gas_cost_today is taking over 10 seconds
Update of sensor.electric_cost_today is taking over 10 seconds
zandeez commented 2 years ago

I also noticed this (starting yesterday) but I'm also having issues with the Bright app so I'd suggest not specifically an issue with the plugin.

HandyHat commented 2 years ago

Looks like this is an issue with Hildebrand Glow - see: https://forum.glowmarkt.com/index.php?p=/discussion/152/maybe-outage-27-03-2022

HandyHat commented 2 years ago

As detailed here: https://forum.glowmarkt.com/index.php?p=/discussion/155/bright-and-api-status-update-29-march-2022 this issue should now be fixed