Hi,
I recently installed pi-hole and love it. I have also successfully integrated into my HA environment. Is there any way (either though the built-in plugin) or through an API / Get request to set and use the temporary disable feature that is in the main admin menu option?
You can enable and disable from the command line so if it’s on a pi with home assistant it should be pretty easy. Basically in the same way you can upgrade with $ pihole -up
you can use
$ pihole enable
$ pihole disable
Would probably be easiest to add as a switch?
Hi,.
Thanks for the help! After knowing what to look for, I found this resource on pihole: https://discourse.pi-hole.net/t/the-pihole-command-with-examples/738
Now to see if I can get the status to show out plain text and not just in the window.
If it is only going to be controlled by a CLI switch from within hass the status of the switch will tell you if it is off or on, just like a light. You can probably use the state of the switch to make it display however you like.
Just be aware that after updating my pi-holes in the last few days a password was automatically added to access the web interface. The password is displayed in the update process but if you don’t catch it during the update you’ll need to reset or remove it by setting a blank password.
Thanks, I did notice the random password during the install; and changed it immediately.