Question about pi-hole integration

I found the Pi-Hole integration (Pi-hole - Home Assistant) and added it to my Home Assistant setup. It’s connected properly using the API key.

I’m looking to do the following:

I’ve set up a Custom Upstream DNS using ExpressVPN/MediaStreamer. This is because I live abroad and sometimes want to access UK-based services (e.g. iPlayer / Channel 4). I don’t want this enabled all the time, so I would LOVE to have an easy toggle that enables the Custom DNS “ExpressVPN” and untoggles the default “Google” DNS. And then if I toggle again, it reverts back.

Does anyone know if this is possible with the current integration? It seems limited to “enable” or “disable” Pi-Hole at the moment. This doesn’t change the DNS servers that Pi-Hole uses, so has no impact on the setup.

I’m completely unfamiliar with the Pi-Hole API, which may have an option to do this? But I fear that’s above my abilities. :slight_smile:

Any help anyone can give, or alternative ideas (does AdGuard allow this in HA for example?). I’m open to alternative ideas or options. Thank you all!!

1 Like

+1 for more pi-hole controls in HA.

I’m looking to be able to enable and disable pi-hole Groups via HA. I think I’d be able to do this by triggering a script on the pi-hole container via a command_line but was hoping to be able to do it a simpler way.