Cannot fetch data from external Pi-hole:

Hello,

I try to integrate pi-hole to my home assistant. Just a little bit about my general setup. I’m running all services as docker container on an synology nas (HA with HTTPS, pi-hole HTTP).

To integrate pi-hole I added:

pi_hole:
  - host: http://myserver:8181
    name: pihole
    ssl: false
    verify_ssl: false

In the HA logs I get the following error:

2020-03-24 18:21:27 ERROR (MainThread) [hole] Can not load data from *hole: http://myserver:8181
2020-03-24 18:21:27 ERROR (MainThread) [homeassistant.components.pi_hole] Unable to fetch data from Pi-hole

I have tried to curl from my host network on synology
curl -X GET http://myserver:8181/admin/api.php
and then I get the informations, so I think pi-hole is working correctly and is available.

Because I have connected HA to the internet I have enabled HTTPS and gave certificates to HA. Could this be a problem? That HA runs with HTTPS and pi-hole with HTTP?

Note: I haven’t enabled HTTPS for pi-hole because I haven’t found a good solution for this.

hi,
have you try for host adress the full one with /admin ?
http://server:8181/admin