I am having some trouble with the Pi-Hole integration. My Pi-hole does not use SSL and I can access it fine using a browser or a ssh connection in Terminal. But when trying to add the integration I keep getting Failure to connect. I’m not sure what I am doing wrong. Perhaps the name? I am not sure what this value wants me to enter. It’s pre-filled as ‘Pi-Hole’ and I changed it to PiHole as that’s the hostname of my Pi-Hole. In anycase no change, keep getting failure to connect.
I just installed the pi-hole integration a week ago and it’s been working fine. I kept port, name, and location at the default values. For Host, I entered only the local actual IP address, i.e. 192.168.x.y
Maybe entering http is messing it up?
Edit: I believe the Name field is only used for creating a Friendly Name.
It adds the http itself. I only entered the IP. Taking from your response it does not do that with you?
Could it be a setting in my pi-hole?
I tried it again and now it works. No change at all. Except the device I used for accessing HA was different (HA app on ipad now instead of using the browser). Confused, but glad it works.
Thanks for the response!
Glad you got it working!
Landed here as I was having a similar issue. So for anyone else who googles and lands here I thought I’d explain why mine wasn’t working.
Pi-Hole & Home Assistant were running on the same server via Docker containers.
Pi-Hole was the only docker container to use it’s own IP address whereas Home Assistant is just using a port of the local machine.
What fixed it for me was bridging the Pi-Hole across (giving it a port on the local machine too) and then using the localhost as ‘Host’ instead of the network IP I usually use to access Pi-Hole directly (which I can still do).
I have a similar issue with the Pi-Hole integration.
I removed it as it didn’t report anything (no sensor info in HA) and after re-installing it, it keeps saying ‘Failure to connect’.
I have a 2nd HA in my network and when I install it in this HA it finish correct and reports all information as suposed.
I would like to remove the integration completely as I believe (not sure if that is the issue) there still is some ‘integration’ left preventing it from a ‘clean’ install.
So my question is not ‘how to resolve this’, but ‘how can I completely remove the integration and make sure there is nothing left’?
Hope someone can help me out. Thank you
Have you had any luck with this? I have Pi-hole installed on a Raspberry Pi 4 using Raspberry Pi OS and I have it installed on a Dell Wyse 5070 using Ubuntu Server. I had the intergation working great on both but about a month ago the install on the Raspberry Pi stopped reporting information to Home Assistant. I deleted that instance of the intergration and tried reinstalling it however now all I get is the “Failed to connect” error.
As being inpatient I removed it and installed Adguard. So I can’t help you