I want to integrate AdGuard Home into Home Assistant. AdGuard Home is running on a different IP address than Home Assistant.
If I want to add AdGuard Home in Integrations it asks for a host, port, user and password. The default host is 3000, but when I go to 192.168.178.221:3000 it shows me that the page is not reachable. When I just go to 192.168.178.221 it shows me the correct AdGuard page. How is this possible?
And then I want to add the AdGuard integration, but when I fill in all the details, it shows that it’s not able to make a connection.
How can I fix this?
How do you normally reach your Adguard Home instance? I have it integrated as well but you’ll need to use the correct port.
You’re saying that just going to the IP address works, this means Adguard is running on port 80 (or 443 for HTTPS).
Home assistant in container. Adguard Home in different container.
If I exec into the Home Assistant container I can ping/traceroute adguard over the macvlan.
Adguard is accessible directly in the browser at that IP. Implying it is using port 80. And indeed navigating to 192.168.1.4:80 also brings up the adguard UI.
I can’t get it to connect to the Adguard server in the integration:
I initially had similar problems but was able to address it by using the following settings…
Server: 127.0.0.1
Port: 45158 (found in AdGuard Add-On log)
Username: (see below)
Password:
Uses SSL: unchecked
Verify SSL: unchecked
I enabled the hidden configuration option (leave_front_door_open) which allows the integration without username and password. After reading about this setting, I ended up deleting the integration, disabling leave_front_door_open, created a separate HA user, and set the integration up a second time with the HA user account I created. Works great.
Configuration:
HA Virtual Machine running Adguard 4.8.14 Add-on
Home Assistant 2023.8.4
Supervisor 2023.08.1
Operating System 10.5
Frontend 20230802.1 - latest
i had the same issues as above, so it took me to install the GitHub - frenck/python-adguardhome: Asynchronous Python client for the AdGuard Home API locally to brute-test until i realized that the HA configuration process is misleading when it has placeholder port value 3000. Port 3000 is for API calls, so i was mapping it to my portainer port routing to AdGuard Home port 3000, which is wrong.
You need to specify port to point the admin portal, not api port. So in my case it’s just:
host="192.168.1.5", # <--- IP of AdGuard behind portainer
port=8580, # <--- port mapped to AdGuard container's port 80
verify_ssl=False,
tls=False,
username="...",
password="...",
In the meantime I tried Pi-hole as an alternative solution to AdGuard Home.
However, The outcome is the same: I cannot connect neither Adguard nor Pi-hole via their respective integrations.
Now this might be just coincidance, but I am starting to get suspicious. Maybe it’s due to my setup (Openmediavault on top of Raspberry Pi OS, Home Assistant (port-bound) and Adguard/Pihole (macvlan) in Docker).
Update
I got another Pi and moved Pi-hole over there and it works right away.
I will try to run the Adguard container on that as well and let you know, if it works.