Ok, I figured out the missing API key entry in the config flow, for whatever reason my brain glossed over the ‘statistics only’ checkbox. Once I uncheck that, a second screen follows with an API key prompt (duh).
I still don’t get timely refreshes. Looking in the code I see MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=5)
Can we consider adding this to the config flow and making it a parameter?
Same problem here. The Pi-Hole switch used to work perfectly, where the status instantly updated even if the Pi-hole was disabled through the web interface. Not working anymore. I can disable the Pi-hole with the switch, however the switch goes back to on almost instantly despite the Pi-hole being disabled. This way it is really unusable.
I’ve added the Pi-Hole integration to my HA instance and used your command_line switch successfully to enable/disable DNS filtering. For automation purposes, could I use similar syntax to send the Pi a sudo shutdown now command?