Skip to content
Projects

About

🛡️ This custom integration restored compatibility between Home Assistant and Pi-hole, which was no longer supported by the native integration. Today, this integration offers additional and complementary features.

Other Projects

How these counts are measured

What you can do

  • Monitor Pi-hole status.
  • Enable/Disable Pi-hole via Home Assistant.
  • Retrieve filtering statistics.
  • Compatibility with the Pi-hole V6 API.

Measured star growth

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Pi-hole V6 Integration for Home Assistant

Maintenair : bastgau Made with Python Made for Home Assistant GitHub Release HACS validation HASSFEST validation

Original component : Pi-hole

The Pi-hole integration allows you to retrieve statistics and interact with a Pi-hole system.

Description

Due to major changes in the Pi-hole API, the native integration with Home Assistant was no longer functional for several months in 2025, until August 2025.

The 'Pi-hole V6 Integration' added compatibility with the new API in Home Assistant. This integration aimed to restore compatibility and provide Pi-hole management directly from Home Assistant.

[!NOTE] Today, this integration remains active and not only restores full functionality but also offers additional and complementary features to the native integration. Users can now enjoy enhanced capabilities and a seamless experience when managing Pi-hole through Home Assistant.

Features

  • Monitor Pi-hole status.
  • Enable/Disable Pi-hole via Home Assistant.
  • Retrieve filtering statistics.
  • Compatibility with the Pi-hole V6 API.

The following sensors are currently implemented :

A complete list with explanations is available on this page.

Translation

The integration is currently translated in few langages :

Installation

Installation via HACS

  1. Add this repository as a custom repository to HACS:

Add Repository

  1. Use HACS to install the integration.
  2. Restart Home Assistant.
  3. Set up the integration using the UI:

Add Integration

Manual Installation

  1. Download the integration files from the GitHub repository.
  2. Place the integration folder in the custom_components directory of Home Assistant.
  3. Restart Home Assistant.
  4. Set up the integration using the UI:

Add Integration

Supported Home Assistant versions

Each release declares the minimum Home Assistant version it needs (the homeassistant key of hacs.json). If your Home Assistant is older than what the latest release requires, install the most recent release listed for your version.

Release Minimum Home Assistant
v1.24.0 and later 2026.11.0
v1.22.1 to v1.23.0 2026.10.0
v1.7.1 to v1.21.0 2025.3.0
v1.0.0 to v1.7.0 2025.2.0

Pi-hole Card

After installing this integration, you can enhance your Home Assistant setup with the Pi-hole Card.

This lovelace card offers a comprehensive and user-friendly dashboard designed specifically for managing and monitoring your Pi-hole DNS ad blocker. It provides real-time statistics and intuitive controls, all presented in a visually appealing interface that aligns with Pi-hole's design aesthetics.

The card is developed by @warmfire540.
The installation instructions are available on the repository: homeassistant-extras / pi-hole-card.

Debugging

It is possible to show the info and debug logs for the Pi-hole V6 integration, to do this you need to enable logging in the configuration.yaml, example below:

logger:
  default: warning
  logs:
    # Log for Pi-hole V6 integation
    custom_components.pi_hole_v6: debug

Logs do not remove sensitive information so careful what you share, check what you are about to share and blank identifying information.

Frequently Asked Questions

How do I configure the refresh frequency?

By default, the blocking status, the switches, the network device trackers and the client counters are updated every 2 minutes, and the cumulative statistics (blocked and total queries, unique domains, FTL messages, version checks) every 5 minutes. Both frequencies are configurable, as explained on the following page.

Need more (noobs) information to install/configure the integration?

Some additional information is available if you encounter any problems while adding a new service on this page.

How do I change the address, the password or the certificate settings?

Use Reconfigure from the menu (⋮) of the service: entities, history and automations are kept, as explained on this page. If the certificate of your Pi-hole changed, Reconfigure is also where you confirm the new one.

Need to implement Pi-hole Controls in your dashboard?

A quick example to integrate controls in a dashboard is available on this page.

Need to optimize your Home Assistant database?

A useful tip to exclude unnecessary sensors from the Recorder is available on this page.

How do I track network devices?

Network device tracking, filtering, and manual removal are explained on this page.

Advantages of using the integration compared to the Core one?

I listed the implemented features in the HA Pi-hole V6 Integration and the Core Integration.

Compatibility

Compatibility Pi-hole V6 Integration Core Integration
Pi-hole v5 (Latest release: December 29, 2024) ❌ ✅
Pi-hole v6 (current version) ✅ ✅

Features

Category Entity Type Pi-hole V6 Integration Core Integration
Binary Sensor Status ✅ ✅
Button Flush the DNS logs ✅ ❌
Flush the network table ✅ ❌
Purge FTL diagnosis messages ✅ ❌
Refresh data ✅ ❌
Restart pihole-FTL ✅ ❌
Run gravity ✅ ❌
Device Tracker Network device (disabled by default, filterable) ✅ + ℹ️ ❌
Sensor Active DHCP leases ✅ + ℹ️ ❌
Active sessions ✅ + ℹ️ ❌
Ads blocked during the last 24 hours ✅ ✅
Ads percentage blocked during the last 24h ✅ ✅
Average number of DNS queries (queries/min) ✅ ❌
Configured clients ✅ + ℹ️ ❌
CPU temperature ✅ ❌
CPU usage ✅ + ℹ️ ❌
DNS queries cached ✅ ✅
DNS queries during the last 24 hours ✅ ✅
DNS queries forwarded ✅ ✅
DNS unique clients ✅ ✅
DNS unique domains ✅ ✅
Domains blocked ✅ ✅
FTL diagnosis messages count ✅ + ℹ️ ❌
Latest data refresh ✅ ❌
Memory usage ✅ ❌
Privacy level ✅ ❌
Remaining until blocking mode ✅ + 🕜 ❌
Seen clients ✅ ✅
Switch Global ✅ ✅
Group {group_name} ✅ + ℹ️ + 🕜 ❌
Update Core update ✅ ✅
Docker update ✅ ❌
FTL update ✅ ✅
Web interface update ✅ ✅
Services Disable / Enable Global (with duration field) ✅ ✅
Disable / Enable Group {group_name} (with duration field) ✅ ❌

✅ : Implemented
❌ : Not Implemented
🕜 : Countdown
ℹ️ : Data in attributes

[!NOTE] I hope you will continue to use or install the Pi-hole V6 Integration. 😃

Support & Contributions

If you encounter any issues or wish to contribute to improving this integration, feel free to open an issue or a pull request on the GitHub repository.

"Buy Me A Coffee"

Enjoy!

Explore related projects

Loading…