Thanks for the good effort but this is not reliable
See original GitHub issueDescribe the bug Every few days or restarts the integration stops pulling any data. Thanks very much to anybody involved in coding this integration but I feel I need to let others know that if they intend to use this for any long-term data analysis it’s simply not reliable.
I’ve had to delete the integration so many times and every time I do it takes a couple of hours to fill the database, leaving a lot of gaps in the dataset which means I cannot calculate usage and cost accurately. I am fully aware of it being “pre-release” and this is not a criticism only a warning to anyone hoping to get constant reliable supply of data from the sensor.
To Reproduce Steps to reproduce the behaviour:
- Install integration (I did via HACS)
- Restart HA, add integration from Integrations page
- After restarting HA or after a few days of running the sensors will become unavailable (I set up an automation to restart HA every day so this is either triggered by a few restarts or running time)
Expected behaviour I expect not to ever have to touch the integration again after adding initially and for it to continue pulling data and presenting to HA
Screenshots If applicable, add screenshots to help explain your problem.
Version What version of the integration and what version of Home Assistant are you running? Using the latest as of October 16th 2021
Debug log Enable debug logging by following the instructions here
Logger: homeassistant.components.sensor
Source: custom_components/hildebrandglow_dcc/sensor.py:36
Integration: Sensor (documentation, issues)
First occurred: 2:31:43 PM (1 occurrences)
Last logged: 2:31:43 PM
Error while setting up hildebrandglow_dcc platform for sensor
Traceback (most recent call last):
File "/config/custom_components/hildebrandglow_dcc/sensor.py", line 33, in async_setup_entry
resources = await hass.async_add_executor_job(glow.retrieve_resources)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/hildebrandglow_dcc/glow.py", line 78, in retrieve_resources
raise InvalidAuth
custom_components.hildebrandglow_dcc.glow.InvalidAuth
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/hildebrandglow_dcc/sensor.py", line 36, in async_setup_entry
await Glow.handle_failed_auth(config, hass)
TypeError: handle_failed_auth() missing 1 required positional argument: 'hass'
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Thanks, I deleted that integration, the custom integration from hacs and added yours, will test now, if it works I thank you very much in advance for your great effort!
On Sat, Oct 16, 2021, 11:08 PM Colin Robbins @.***> wrote:
Hi, I’ve found the same issue today seems like it is caused because some auth tokens don’t renew this wizard has forked and hopefully solved the issue https://github.com/ColinRobbins/ha-hildebrandglow-dcc