pi_hole sensor platform displays the statistical summary of a Pi-hole system.
To enable this sensor, add the following lines to your
configuration.yaml file for a GET request:
# Example configuration.yaml entry sensor: - platform: pi_hole
IP address of the host where Pi-hole is running.
The installation location of the Pi-hole API.
true, use SSL/TLS to connect to the Pi-Hole system.
Verify the certification of the system.
Defines the stats to monitor as sensors.
Total number of blocked ads today.
Percentage of blocked ads.
Total number of DNS queries handled by Pi-hole today.
Total number of domains blocked by Pi-hole.
Total number of cache queries on the last 24 hours.
Total number of forwarded queries on the last 24 hours.
Total number of unique clients on the last 24 hours.
Total number of unique domains on the last 24 hours.
Total number of seen clients.
# Example configuration.yaml entry sensor: - platform: pi_hole host: IP_ADDRESS monitored_conditions: - ads_blocked_today - ads_percentage_today - dns_queries_today - domains_being_blocked - queries_cached - queries_forwarded - unique_clients - unique_domains
This sensor platform was not made by Pi-hole LLC or the Pi-hole community. They did not provide support, feedback, testing, or any other help during its creation. This is a third party platform which may break if Pi-hole changes their API in a later release. It is not official, not developed, not supported, and not endorsed Pi-hole LLC or the Pi-hole community. The trademark
Pi-hole and the logo is used here to describe the platform.
Pi-hole is a registered trademark of Pi-hole LLC.