I use the AdGuard Home add-on since quite some time and so far I am very happy with it (with one exception which shall not be the topic of this thread but I will allow myself to mention at the very end).
I have also installed the AGH integration which, besides statistics, theoretically would provide switches to manipulate some very basic function like filtering on/off.
Now as the kids start to use games, I wanted to simplify the handling of specific filter services (or categories of them could also work) while keeping the rest. So e.g. I want a switch and/or automation that allows me to unblock/block the game category or a set of specific ones (like Roblox, Minecraft, etc).
I am aware that there are threads asking for the same or at least similar and I also looked at them, however, some are simply outdated or not comparable since AGH is run on a different device etc, at least so far I was not able to proceed. I found some instructions how to access API but so far I was not successful to adapt. I also tried to activate separate web server for AGH by entering “3000” for web interface port in AGH add-on configuration section, but then AGH will not even start.
My main questions so far are the following:
- How can I make use of AGH API from within HA?
- Can I use ingress for this and if yes how does it work with URLs, authentication etc?
- If it does not work with ingress, how can I enable direct API access to AGH add-on instance and will it break something else or is this working in addition?
- Is there a nice AGH API documentation? I found the yaml on GitHub but not a “user friendly” API documentation page.
Ofc, HA and Add-on are up to date. So far I don’t use HACS but also there I anyway did not find much until now but in the end I’m anyway interested to understand the API stuff for potential other appliances.
Thanks for any help bringing me further with these topics.
P.S. as promised, the one thing I don’t like or maybe don’t understand about AGH: I exclude certain devices completely from AGH rules, and today I do it with IP addresses in client section which works. However, I don’t fully understand why I cannot use hostnames as well for clients as IPs can change…