core: pi-hole: Can not load data from *hole: xxx.xxx.xxx.xxx
Home Assistant release with the issue: 0.99.2
Last working Home Assistant release (if known): 0.98.5
Operating environment (Hass.io/Docker/Windows/etc.): Hassio
Component/platform: Pi-hole
Description of problem:
Can not load data from *hole: xxx.xxx.xx.xxx
Problem-relevant configuration.yaml
entries and (fill out even if it seems unimportant):
pi_hole:
host: !secret pi-hole_host
Traceback (if applicable):
Can not load data from *hole: xxx.xxx.xx.xxx
Additional information: This was working until the 0.99.2 HA upgrade.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 37 (12 by maintainers)
I’ve seen this error as well, so will share what I’ve pushed forward with.
This error is from the ‘hole’ python package, not the pi_hole component. The package’s definition of ‘async def get_data(self)’ includes a hard-code timeout value of 5 seconds, which cannot be overridden without a code change.
My preference would be to allow the component to define this timeout value, especially since at startup, this value should be increased due to increased resource demands (IMHO).
As such, I have opened an issue here: https://github.com/home-assistant-ecosystem/python-hole/issues/6
If a code changes are supported, we could then alter the pi_hole component to allow the user to define both a timeout for connection with each pi-hole instance, and a scan interval to define how often the data is updated.
I also have this error showing up in the logs on the latest version of HA (0.118.2). However, the sensor is working fine:
Having this exact issue on hassio 0.101 as well. For some reason this doesn’t work (while the previous sensor structure worked flawlessly):
The server has a valid certificate, signed by a trusted CA. I can curl the pihole admin interface from hassio. Getting this error from home asssistant:
All good. Moved Pi-Hole to configuration.yaml as below.
Can we not use Pi-hole in packages?
Yeah, this is a problem that keeps coming back for me as well…I can even curl and use the pihole python lib correctly on my osx install to fetch data… but somehow HA cannot
@fenio After 5 minutes or so, the Pi-Hole component should refresh its data. Does the error occur then as well?