Fixing Adguard’s Home-Assistant Connection

Fixing Adguard's connection in Home-Assistant

If you’re running an instance of Adguard in Docker on your network and wish to connect this to the Home-Assistant integration, you might have issues actually getting them to connect. I had tried several different variations of http/https, ssl on/off, verify on/off and even varying user/pass. I eventually found my issue.

AdGuardHome.yaml

In Unraid, In my AdGuardHome.yaml file in docker/Adguard…. configuration folder you’ll see the following lines at the top:

bind_host: 0.0.0.0
bind_port: 80
beta_bind_port: 0
users:
  – name: admin
    password: redacted
We need to change the bind_port from 80 to 3000. Note this does mean that now to access Adguard, you’ll need to use your.ip.address.here:3000 instead of just your.ip.address.here, but that’s no issue, just a case of adding the port to the bookmark!
Save the .yaml file and restart the container.
AdGuard Config File on Unraid
AdGuard Config File on Unraid
Now try and add the integration again… voila (hopefully)!
Configuration of the Adguard Interface
Configuration of the Adguard Interface

 

AdGuard Home in Home-Assistant
AdGuard Home in Home-Assistant

Unraid

As a last step, if this still doesn’t work for you, then an additional step may be to enable the host to access custom docker networks on Unraid. To do that, you need to stop the docker service on Unraid. Go to the Docker settings page and show advanced.

There you enable the following. Once done, remember to enable the Docker service again:

Advanced Docker Settings in Unraid
Advanced Docker Settings in Unraid

If you notice, when you create Adguard Home, it’s created on Br0 network. I am not sure if the above step is entirely necessary, but it was another step I did earlier when trouble shooting and I now have Adguard Home working in Home-Assistant. I can’t be bothered to stop docker, switch it off and try again! YMMV

If you’re looking to bring in more of your docker containers into Home-Assistant for monitoring and control, be sure to check out my post here.

 

If anyone has any hints or tricks on where to go from here, I’m all ears! You can hit me up directly, or in our facebook group below to discuss further.

https://www.facebook.com/groups/386238285944105

If you’re considering a renovation and looking at the structured wiring side of things, or maybe you just want to support the blog, have a look below at my smarthome book, it’s available in all the usual places (including paperback).

The Smarthome Book
The Smarthome Book

Leave a Reply