Thanks Franck! The reason I asked is, I didn’t see an acknowledgement of the issue in the release notes, either. Nor here, nor on GitHub.
I was reluctant to open a new issue on GitHub, because it seemed possible that the change was intentional (if undocumented). I know there have been a lot of security changes recently, and DNS is pretty central to any network’s security. The sensors could have been a temporary victim of tightening the screws. So I was just pinging here first.
If it’s less work for you if we just open issues on GitHub when we encounter problems, I will by all means go directly there. (But, from my day job, creating bugs for things that are not bugs is more work for everyone involved. Hence my reluctance to start there when something isn’t obviously wrong.)
And now, after updating to HA .106.5, the add-on is completely dead.
The web UI does not load, instead returning a “502: Bad Gateway” error.
The add-on Logs repeats the following error every few seconds: “nginx: [emerg] invalid number of arguments in “resolver” directive in /etc/nginx/includes/resolver.conf:1”
Hmmm. Restarting Home Assistant didn’t resolve the problem, but I just tried stopping the add-on, and then starting it again, and the web UI is at least back. So, that’s something.
@Frenk I know you advocate using the AdGuard Home add-on instead of the Pi-Hole add-on, but I’ve been uncomfortable with using it, because it’s from a commercial entity, and the “If you’re not paying for the product, you are the product” adage comes to mind. I might find myself changing my mind…
Hi!
Having a problem here accessing the API. I have an app with hardcoded URL http://[IP]/admin/api.php. But in my installation the API is available at http://[IP]/api.php.
There is no admin-login at all? When opening the webUI from outside homeassistant the URL shown has no path /admin as well although I’m logged in with user homeassistant.
Container Host Description
4865/tcp 4865 API endpoint (For HA integration)
53/udp 53 DNS server port
80/tcp 80 Web interface (Not required for Ingress)
@Klagio If you configure your Pi-Hole integration and switch using “localhost:4865”, then access from your Home Assistant instance should just work.
At least, once I read the docs (including the parts I missed the first time), made the changes, and rebooted Home Assistant (full restart), it’s working for me.
My integration is bog standard, but here’s what I’m using for my switch:
# "Simple" method for disabling Pi-Hole on both instances
# This method requires hard-coded strings for the commands, no secrets
switch:
- platform: command_line
scan_interval: 10
switches:
pihole_switch_hassio:
friendly_name: "Ad Blocking (HA)"
command_on: "curl -X GET 'http://localhost:4865/admin/api.php?enable&auth='"
command_off: "curl -X GET 'http://localhost:4865/admin/api.php?disable=60&auth='"
command_state: "curl -X GET 'http://localhost:4865/admin/api.php?status'"
value_template: "{{ value_json.status == 'enabled' }}"
As you can see, just using the empty API key auth= (along with localhost) is the trick.
mmhhh I have two instances of HASSIO, on my main I use Adguard, on my second I use pi-hole. And then I use as DNS address 1 the address of HASSIO main, and DNS address 2, the address of HASSIO second
SO from HASSIO main, I guess I can’t access the HASSIo/PI-HOLE on the second? Because I wish to have the 2 switches (to turn on/off Adguard and turn on/off pihole), only in HASSIO main
Of course I will not use localhost, but just the IP address 192.168.1.x
Hello,
is there a way to start pihole addon not from Supervisor ?
I use portainer and everytime i try to start pihole addon from portainer, pihole starts and then stop it.
This is useful in case of docker upgrade, since pihole will not restart by itself and will not turn it on automatically.
Or maybe i’m blind, if there is a way let me know, thanks.
ah, an HA script, i thought it was a bash script
Thanks for that, will do some tests.
It’s really strange why some docker containers can’t start by itself via cli or gui while other containers can
I’m not really a fan of “let low level tasks be done via HA” and hope it could be fixed a day.