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.
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
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.
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
Format a usb drive with FAT32 format, naming it CONFIG.
Create a folder called ânetworkâ.
Inside the folder, create a file called âmy-networkâ.
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.
Check the logs for a line mentioning syncing config with usb
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.
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.
I did think that would be a slight issue 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.