Hello everyone,
I am a new user of Home Assistant and I can’t wait to discover its possibilities. I started by setting up remote access. My setup is a Raspberry Pi4 connected to my home router. After reading documentation and following tutorials, this is where I am:
- Installed the duckdns addon and got a certificate from Let’s Encrypt. This is my configuration file:
domains:
- my_domain.duckdns.org
token: <mytoken>
aliases: []
lets_encrypt:
accept_terms: true
algo: secp384r1
certfile: fullchain.pem
keyfile: privkey.pem
seconds: 300
- Installed NGINX and configured as follows:
domain: my_domain.duckdns.org
hsts: max-age=31536000; includeSubDomains
certfile: fullchain.pem
keyfile: privkey.pem
cloudflare: false
customize:
active: true
default: nginx_proxy_default*.conf
servers: nginx_proxy/*.conf
real_ip_from: []
-
In my router I do port forwarding like this:
WAN Start Port 8123 to WAN End Port 8123 → RPi4_local_IP Start Port 8123 to RPi4_local_IP End Port 8123
WAN Start Port 443 to WAN End Port 443 → RPi4_local_IP Start Port 443 to RPi4_local_IP End Port 443 -
This is my configuration.yaml file:
# Loads default set of integrations. Do not remove.
default_config:
homeassistant:
external_url: "https://my_domain.duckdns.org"
internal_url: "http://RPi4_local_IP:8123"
auth_providers:
- type: homeassistant
- type: trusted_networks
trusted_networks:
- 192.168.1.0/24
- 127.0.0.1
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
After testing, this is what works:
- Access to Home Assistant from my computer in the local network via http://RPi4_local_IP:8123
- Access to Home Assistant from my computer in the local network via https://my_domain.duckdns.org (I can see the padlock and by clicking on it I can see the Let’s Encrypt certificate)
This is what does NOT work:
- I cannot access Home Assistant from any device outside the network (laptop, smartphone, etc).
The message that the Home Assistant Android app shows is the following, and the screen is stuck at “Initializing”:
home assistant unable to fetch auth providers. auth_callback=1
Can anyone please provide any hints on this, because I really think I have tried everything.
Thank you,
dtheodor