PiHole add-on breaks home assistant components, nothing can connect

When I enable my PiHole add-on, and configure router to DNS through my Pi, my home assistant basically breaks.

It wont load any custom components that pull from https, it cant load any cloud based components (tuya, amazon echo, dark sky, etc). Everything outside of my overview tab works i.e. I can restart HA.

Only thing that works is my hue lights which are ethernet.

Am I missing something here?

I have had similar problems with Pihole and dnsmasq addons, which would from time to time make HA lose connection to outside world. My router does not support NAT loopback, and I tried all kinds of different configurations with mixed results. Never figured out what the issue was, I ended up buying a separate Pi for running pihole, because it was also annoying to lose internet whenever HA is restarting (which happens quite often ;)). This has worked great for me so far

Did you configure static IP address on the machine running Pi-Hole?

that’s what I was thinking I need to do. It doesn’t show any blocked queries on the PiHole, so I think its an issue when Hassio and Pihole are running from the same device. I wonder if anyone has configured Pihole from the add-on and if I’m just doing ti incorrectly.

I have configured static ip from router, do I need to do it from the device?

Yes, I have both Hassio and PiHole addon running on the same RPi and had the same problem as you did. When you set a fixed IP on your router, you just reserved it for your Pi, but actual static IP is configured on the device itself.

On your router, your primary DNS needs to be PiHole’s address, and secondary DNS should be some external DNS like Google’s 8.8.8.8

On the RPi, your primary DNS should be external, like 8.8.8.8 and secondary should be another external DNS like 8.8.4.4

I just read the documentation on how to configure static ip on Pi, from this: https://github.com/home-assistant/hassos/blob/dev/Documentation/network.md.
This may be way out of my league. Did you follow this documentation?

Yes I did.

  1. Format a usb drive with FAT32 format, naming it CONFIG.
  2. Create a folder called “network”.
  3. Inside the folder, create a file called “my-network”.
  4. Open it in any text editor and copy/paste the configuration under title Default from your link. Replace the section annotated [ipv4] with configuration under the title “Static IP”. Replace 192.168.1.111 with your RPi’s address and replace 192.168.1.1 with your router’s IP address. Save the file and exit.
  5. Put the usb in RPi
  6. Go to your hassio GUI under Hass.io -> System
  7. Press “Import from usb”
  8. Check the logs for a line mentioning syncing config with usb
  9. Press “Reboot” in the same frame where you pressed import settings

You should have the static IP configured after that and have no more problems with running PiHole, but there were some reports that config doesn’t get applied after first try so just repeat steps 7-9 a couple of times until it works.

Hey thank you so much! you made it very easy to understand. I will try this tonight

My only question is, is there a format that the file needs to be? .txt? or
edit: nvm I think I got it thank you

I’ve been trying to give this a go myself, and have got as far as step 6. However since using version 2024.10.3 of Home Assistant Supervised, they’ve removed the “Import from USB” option having read up on further threads about it.

I’m trying this via the Hassio CLI and running “ha os import”, but get the below error:

Error: ‘OSManager.config_sync’ blocked from execution, no Home Assistant OS available

So I currently have the files on a USB plugged in to a desktop PC running Debian 12 with HA Supervised, but unable to load the config from the USB in to Home Assistant to change the settings.

Any suggestions for this please? Some of my components have broken down since I’ve started using Pihole on the same desktop.

Thank you!

You are replying to a 6 year old thread. Don’t you think you would be better served if you created your own topic with your specific issue?

I did think that would be a slight issue :sweat_smile: That is my next step if there was no further responses here, so will do that. I had the idea of responding here as this was where I was following the instructions to re-upload my network config for Home Assistant.

Edit: Have made a new thread - Since setting up Pihole on the same desktop - a few integration components have stopped working