Hi everyone, I’ve been exploring ways to enhance my smart home setup, and I thought I’d share my experience with integrating Pi-Hole into Home Assistant. For those who aren’t familiar, Pi-Hole is a fantastic tool for blocking ads across your entire network. It’s been a game-changer for me, especially when browsing on devices without ad blockers.I came across a helpful guide on how to set up a sensor and a switch within Home Assistant to control Pi-Hole. The sensor keeps track of the ad-blocking status, and the switch allows me to toggle it on or off. This integration is perfect for times when I want to disable ad-blocking temporarily, like when my wife is shopping online and prefers to see ads for product comparisons.Here’s a quick overview of what I did:1. Installed the Pi-Hole Component: I added the sensor to monitor Pi-Hole’s status. This gives me real-time updates on whether ad-blocking is active.2. Created a Command Line Switch: Using the command_line switch platform, I set up commands to enable, disable, and check the status of Pi-Hole. When disabled, it stays off for an hour before automatically re-enabling, which is super convenient.3. Customized the Configuration: I made sure to replace the IP address in the commands with my Pi-Hole’s actual IP. If you’re using a password for Pi-Hole, don’t forget to include it in the API calls for authentication.This setup has been working smoothly for me, and I love how it simplifies managing ad-blocking across my network. It’s a great example of how Home Assistant can integrate with other tools to create a seamless smart home experience.If anyone has questions or suggestions on improving this setup, I’d love to hear them! Happy tinkering! ![]()