Home Assistant Community Add-on: Pi-hole

Hi @frenck, Is it possible to resolve any public domain name to my local network ip address using this pi.hole add-on dns feature?

Thanks,

Hello, my snapshot are getting bigger because of pi-hole.
I tried to flush the logs but still 500mo just for the addon.
Do you have any idea how to make it smaller ? Is there a way to clean everything, I donā€™t mind losing the logs.

Thanks,

Please do not do that and donā€™t recommend that to people either. We should not recommend people to go into the lower levels of the system and fool around with it. In the end, that will cause you issues.

As you are using hass.io, you can try this: log into your home assistant using ssh (with ssh & web terminal add-on) and use this command: ha supervisor repair

Ok post deleted. I thought this could help as it was the only solution for me (when i looked into it more than a year ago) to overcome the lack of loopback capability on my router.
Thanks for your warning and your job on HA.

How this command will help me reduce the size of pi-hole ?

Hello @frenck, any idea how to do it ? Flushing the logs does nothing :frowning:

Sounds like a bug that needs to be addressed. Normally a scheduled tasks should take care of that. Please report it on the GitHub repo of the add-on.

It will flush some old data for all add on by doing some repair. Saved 3Gb using this command. And my snapshot went from 80mb to only 25mb

I tried, didnā€™t save me anything in my case :frowning:

I uninstalled and reinstall the addon, everything is ok now.

Alright. So i have a Pi4 and want to run Hassio with the PiHole add-on.
Iā€™ve set everything up and it looks like itā€™s working with a few problems:

In PiHole it says under settings thats itā€™s Ipv4 is 192.168.1.3 (example). The host, the Pi4 is 192.168.1.4
The 192.168.1.3 is unfindable in the whole network. Is this a normal thing? Cause i want that IP to be assigned as DNS1 by my router, so that all seperate deviced get monitored by the PiHole and i get a nice view per device.

Might be something stupid, but canā€™t get around it.

:tada: Release v4.1.0

Full Changelog

This is a general maintenance release, containing a lot of internal upgrades and fixes.

:hammer: Changes

  • :ambulance: Fixes issues with HTTP header checking (#89)
  • :fire: Remove virtual host configuration (#90)
  • :ambulance:Fix admin/queries.php for ingress users (#97)
  • :ambulance:Fix admin/queries.php for direct users (#98)
  • :lipstick:Fix error log path to /dev/stderr (#91)
  • :books: Update documentation on how to integrate with Home Assisā€¦ (#102)
  • :arrow_up: Upgrades Pi-hole web interface to v4.3.2 (#107)
  • :fire: Removed coffee patch
  • :hammer: Updated fix killall brain damage patch
  • :books: Update add-on installation instructions
  • :shirt: Fixes Markdownlint warnings
  • :fireworks: Updates maintenance/license year to 2020
  • :pencil2: Funding adjustments
  • :pencil2: Fixes some spelling and grammar
  • :arrow_up: Upgrades gcc to 9.2.0-r3
  • :arrow_up: Upgrades musl-dev to 1.1.24-r0
  • :arrow_up: Upgrades nettle-dev to 3.5.1-r0
  • :arrow_up: Upgrades sqlite to 3.30.1-r1
  • :arrow_up: Upgrades psmisc to 23.3-r0
  • :arrow_up: Upgrades openssl to 1.1.1d-r3
  • :arrow_up: Upgrades bind-tools to 9.14.8-r5
  • :arrow_up: Upgrades logrotate to 3.15.1-r0
  • :arrow_up: Upgrades perl to 5.30.1-r0
  • :arrow_up: Upgrades git to 2.24.1-r0
  • :arrow_up: Upgrades lua-resty-http to 0.15-r0
  • :arrow_up: Upgrades ncurses to 6.1_p20191130-r0
  • :arrow_up: Upgrades procps to 3.3.16-r0
  • :ambulance: Hot patch FTL for nettle 3.5 compatibility
  • :books: Update Home Assistant integration instruction
  • :arrow_up: Upgrades nginx to 1.16.1-r6
  • :books: Update add-on documentation to use new YAML configuration format
  • :hammer: Re-branding
  • :hammer: Update add-on config with new password & list features
  • :hammer: Updates for upstream Supervisor changes
  • :ambulance: Fix broken Home Assistant DNS servers in list
  • :hammer:Admin scripts rewrite (#123)
  • :arrow_up: Upgrades add-on base image to v7.0.2
  • :hammer:Add access control to api.conf (#114)
  • :arrow_up: Upgrades libxml2 to 2.9.10-r2
  • :arrow_up: Upgrades ncurses to 6.1_p20200118-r2
  • :arrow_up: Upgrades php7 to 7.3.15-r0
  • :arrow_up: Upgrades sudo to 1.8.31-r0
  • :arrow_up: Upgrades Pi-hole core to v4.4

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work:
https://github.com/sponsors/frenck or https://patreon.com/frenck

Just updated to the latest version (4.1), and my pi-hole sensors are all reporting ā€œunavailableā€.

Iā€™m also unable to use the following command, which previously worked perfectly:

curl -X GET 'http://<local_address>:4865/admin/api.php?status'

Instead of returning the expected status, Iā€™m getting a 403 Forbidden error from nginx.

Did something change, and I need to tweak my config, or has something gone wrong with the add-on itself?

1 Like

Iā€™ve got the same trouble.

1 Like

I probably have the same problem. There are many messages in the logs.

Logger: homeassistant.helpers.template
First occured: 12:00:11 (315 occurences)
Last logged: 14:42:25

Error parsing value: ā€˜value_jsonā€™ is undefined (value:

403 Forbidden

403 Forbidden


nginx , template: {{ value_json.status == 'enabled' }})
1 Like

Iā€™ve been having the same issue here. My pi-hole sensors are unavailable and I canā€™t enalbe / disable it as before after this update.

1 Like

:tada: Release v4.1.1

Full Changelog

This is a bug fix release.

:hammer: Changes

  • :hammer: Update community forum links
  • :ambulance: Bypass HTTP origin

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work:
https://github.com/sponsors/frenck or https://patreon.com/frenck

FWIW, release 4.1.1 does not resolve the problem of Pi-Hole sensors all responding with ā€œunavailableā€, as reported by me and several other folks here.

Not a complaint, just a report. (Though I do want to get the sensors and curl access working again.)

The release notes donā€™t state that either, so that would be correct

1 Like