diff --git a/setup-trusted-networks-instructions.txt b/setup-trusted-networks-instructions.txt new file mode 100644 index 0000000..e78c3a5 --- /dev/null +++ b/setup-trusted-networks-instructions.txt @@ -0,0 +1,49 @@ +Home Assistant Trusted Networks Setup +====================================== + +Long-lived access tokens work for API access, but NOT for web UI login. +For automatic web UI login, you need to configure Trusted Networks. + +YOUR COMPUTER'S IP: 192.168.68.193 + +OPTION 1: Via Home Assistant UI (EASIEST) +------------------------------------------ +1. Open Home Assistant from another device/browser +2. Go to: Settings > People & Zones > Trusted Networks +3. Click "Add Trusted Network" or "Configure" +4. Add this IP address: 192.168.68.193 +5. Save and restart Home Assistant if needed + +OPTION 2: Via configuration.yaml +---------------------------------- +1. Edit your Home Assistant configuration.yaml +2. Add or update the http section: + +http: + use_x_forwarded_for: true + trusted_proxies: + - 192.168.68.193 + ip_ban_enabled: true + login_attempts_threshold: 5 + +3. Restart Home Assistant + +OPTION 3: Use auth_providers (if available) +-------------------------------------------- +Add to configuration.yaml: + +homeassistant: + auth_providers: + - type: trusted_networks + trusted_networks: + - 192.168.68.193 + +Then restart Home Assistant. + +AFTER CONFIGURING: +------------------ +Once trusted networks is set up, the dashboard should automatically +bypass the login screen when accessing from IP 192.168.68.193. + +Restart the dashboard: + ~/scripts/restart-dashboard.sh