this post was submitted on 21 Nov 2023
12 points (100.0% liked)
homeassistant
11372 readers
23 users here now
Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I've successfully run HA and PiHole (and also HA and Adguard) on the same pi4 before now.
First I would check and see if you can get your current router to use a DNS address other than the one your IP put on it. If that's the case (unlike me) you can just point your router at your PiHole (or Adguard) DNS and have adblocking network wide.
If you can't do that (like me) then I've had quite good results from having PiHole (or Adguard) running as my DHCP server. This is the thing in your network that gives all your devices their IP address. First you turn it off in your router, then turn it on in PiHole and configure it from there. You can then have this DHCP server point at your PiHole DNS and have adblocking network wide.
The downside is that all your devices will then have a new IP address given by the new DHCP server. To combat this, you should save your IP reservations or maybe even all the IP addresses on your network, and set them as static IP addresses on your PiHole DHCP server.
It works. But if your Pi goes down at any time your devices may forget who they are (lose their IP address reservations) and have a bit of an existential crisis. Easy fix, usually just turn it off and on again and reboot your router, and maybe all your devices, so they can "Find Themselves" again.
Best of luck
Fortunately the ISP provided modem/router has DNS support. I managed to install Adguard as an add-on in Ha OS. I just need to figure out why HA OS refuses to change my IPv4 address to static mode. After that I can change the DNS address and hopefully I can get rid of ads in my house.
Good news then! Try setting your IP in your router for your Pi, that should give it a static address if you can't set it on the pi