I'm not sure if this has been discussed before (I didn't find anything while searching) and it's not entirely relevant to Pi-hole v6 development, but I thought I would mention it here in case it helps anyone:
I use two Pi-holes, Pi-hole v5 AND Pi-hole v6 beta and I have the Pi-hole 'integration' configured in my Home Assistant setup.
Unfortunately, the current Pi-hole integration in Home Assistant, doesn't appear to work with Pi-hole v6 (I believe the API has moved/changed).
The current integration diagnostic reports:
},
"data": {
"error": {
"key": "bad_request",
"message": "Bad request",
"hint": "The API is hosted at pi.hole/api, not pi.hole/admin/api"
},
"took": 0.0002002716064453125
},
"versions": {
"error": {
"key": "bad_request",
"message": "Bad request",
"hint": "The API is hosted at pi.hole/api, not pi.hole/admin/api"
},
"took": 0.00019049644470214844
}
}
}
looks orignal dev for Pi-Hole integration in HA has abaonded the development. We can only hope that someone else with such knowledge/skills can pick it up now. I have disabled the integration in HA for now.
hey bastgau - appreciate you jumping on this. Can you provide any guidance on working through this error "Failed to connect to the server. Ensure that the server address and the port are correct." when setting up your Pi-hole V6 Integration in Home Assistant?
I know the API changed in V6, and for me, the port of my Pi-holes changed too. I tried the IP address of my Pi-hole 6 also tried it with the 8080 new port and old 80 port with my web UI password and also tried the webserver.api.pwhash from the Pi-hole settings but nothing worked.
Works fine to me!
The only thing that is not working, but it's not so important, is that you dont have feedback to Home Assistant if you turn off Pi-Hole from its web interface.
The opposite works instantly.
Thank you very much!
Just upgraded pi-hole to v6 and migrated to your integration.
Process:
Backup: HA and Pi-Hole.
HA/HACS: Install Pi-hole v6 integration
Upgrade: Pi-hole to v6
HA/Settings: Remove HA Pi-Hole integration
HA/Settings: Add Pi-hole v6 integration and configure for pi-hole url/password
When complete, the original sensor and entity names remain the same.
All of my dashboards still worked, and all sensor histories were retained.