Me too - that’s one of my problems - although can’t get my Raspbian setup to even connect to one. I’m guessing it works for the hassbian version for a single pihole instance?
It does work for a single pi-hole. The sensor names even remained the same. I have also tried the following which the config editor is happy with… but it still throws an error at boot and results in none of the pi-holes showing up.
pi_hole:
host:
- 192.168.1.4
- 192.168.1.7
I am beginning to think that they made the assumption that a person would only run 1 pi-hole and did not include the option for 2.
Even more annoying, the configurator option to restart hass does not seem to do a full restart now. It is doing something as I get new notifications, but it is not restarting the whole thing. I am having to restart via the CLI.
2019-09-21 18:20:34 ERROR (MainThread) [hole] Can not load data from *hole: pihole.local
2019-09-21 18:20:34 ERROR (MainThread) [homeassistant.components.pi_hole] Unable to fetch data from Pi-hole
2019-09-21 18:25:55 ERROR (MainThread) [homeassistant.core] Error doing job: SSL handshake failed on verifying the certificate
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/sslproto.py", line 625, in _on_handshake_complete
raise handshake_exc
File "/usr/lib/python3.7/asyncio/sslproto.py", line 189, in feed_ssldata
self._sslobj.do_handshake()
File "/usr/lib/python3.7/ssl.py", line 763, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1056)
2019-09-21 18:25:55 ERROR (MainThread) [homeassistant.core] Error doing job: SSL error in data received
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/sslproto.py", line 526, in data_received
ssldata, appdata = self._sslpipe.feed_ssldata(data)
File "/usr/lib/python3.7/asyncio/sslproto.py", line 189, in feed_ssldata
self._sslobj.do_handshake()
File "/usr/lib/python3.7/ssl.py", line 763, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1056)
2019-09-21 18:25:55 ERROR (MainThread) [hole] Can not load data from *hole: pihole.local
2019-09-21 18:25:55 ERROR (MainThread) [homeassistant.components.pi_hole] Unable to fetch data from Pi-hole
It seems to not accept the verify_ssl command that ignores that it is a self signed certificate (and it worked in previous versions when it was in sensors.yaml.