I have upgraded from 0.98.5 to 100.3 and as part of that there is a breaking change where the pi_hole monitor moves from been a sensor to its own component.
I have been using 2 Pi-Holes as primary and secondary DNS and this worked quiet well
Below is my old sensor config
However, when I attempt to configure both of my Pi-Hole instances, I get a configuration file error:
Configuration invalid
CHECK CONFIG
Invalid config for [pi_hole]: expected a dictionary for dictionary value @ data['pi_hole']. Got [OrderedDict([('host', '192.168.1.199'), ('name', 'Primary Pi-Hole'), ('api_key', 'xxx')]), OrderedDict([('host', '192.168.1.9:4865'), ('name', 'Secondary Pi-Hole')])]. (See /config/configuration.yaml, line 93). Please check the docs at https://home-assistant.io/integrations/pi_hole/
So I think an enhancement is coming, but needs to wait for an update to Home Assistant itself.
Yes, that’s the syntax that works once multiple hosts are allowed by the software.
My error is due to me not yet having updated to .104, which was announced yesterday, but had not yet shown up on my HA instance as an available update. (HASS.IO 3.8 has shown up, so maybe I need to do that update first.)
That’s entirely expected. I should have been more clear: this isn’t a problem I’m trying to solve, just a reply to the OP that the feature appears to be imminent.
Now working! saved config did not have the space between the - and host.
Has anyone tried this with .104.2? I tried it last night with 2 -host lines and it would not take the config after the reboot. It still appears not to be fixed.