Add QUICK-FIX-AUTO-LOGIN.txt
This commit is contained in:
44
QUICK-FIX-AUTO-LOGIN.txt
Normal file
44
QUICK-FIX-AUTO-LOGIN.txt
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
QUICK FIX: Home Assistant Auto-Login
|
||||||
|
====================================
|
||||||
|
|
||||||
|
PROBLEM: Long-lived access tokens don't work for web UI login.
|
||||||
|
SOLUTION: Use Trusted Networks instead.
|
||||||
|
|
||||||
|
YOUR COMPUTER IP: 192.168.68.193
|
||||||
|
|
||||||
|
STEP 1: Configure Trusted Networks in Home Assistant
|
||||||
|
-----------------------------------------------------
|
||||||
|
From another device (phone/computer), open Home Assistant:
|
||||||
|
|
||||||
|
Option A - Via UI (EASIEST):
|
||||||
|
1. Settings > People & Zones
|
||||||
|
2. Find "Trusted Networks" section
|
||||||
|
3. Click "Add" or "Configure"
|
||||||
|
4. Add IP: 192.168.68.193
|
||||||
|
5. Save
|
||||||
|
|
||||||
|
Option B - Via configuration.yaml:
|
||||||
|
Edit configuration.yaml and add:
|
||||||
|
|
||||||
|
homeassistant:
|
||||||
|
auth_providers:
|
||||||
|
- type: trusted_networks
|
||||||
|
trusted_networks:
|
||||||
|
- 192.168.68.193
|
||||||
|
|
||||||
|
Then restart Home Assistant.
|
||||||
|
|
||||||
|
STEP 2: Restart Dashboard
|
||||||
|
--------------------------
|
||||||
|
After configuring trusted networks, run:
|
||||||
|
~/scripts/restart-dashboard.sh
|
||||||
|
|
||||||
|
The dashboard should now auto-login without showing the login screen!
|
||||||
|
|
||||||
|
|
||||||
|
ALTERNATIVE: If Trusted Networks doesn't work
|
||||||
|
-----------------------------------------------
|
||||||
|
We can try using Firefox saved credentials, but that requires
|
||||||
|
manually logging in once (which you can't do without keyboard/mouse).
|
||||||
|
|
||||||
|
The trusted networks method is the best solution for headless kiosks.
|
||||||
Reference in New Issue
Block a user