1
0
Fork 0

home-assistant: Add trusted user for Kitchen kiosk

The Raspberry Pi in the kitchen now has Firefox installed so we can use
it to control Home Assistant.  By listing its IP address as a trusted
network, and assigning it a trusted user, it can access the Home
Assistant UI without anyone having to type a password.  This is
particularly important since there's no keyboard (not even an on-screen
virtual one).

Moving the `trusted_networks` auth provider _before_ the `homeassistant`
provider changes the login screen to show a "log in as ..." dialog by
default on trusted devices.  It does not affect other devices at all,
but it does make the initial login a bit easier on kiosks.
pull/38/head
Dustin 2025-01-04 07:19:39 -06:00
parent 252dcfedc8
commit 75e6f7ee16
1 changed files with 4 additions and 1 deletions

View File

@ -39,13 +39,16 @@ recorder:
homeassistant: homeassistant:
auth_providers: auth_providers:
- type: homeassistant
- type: trusted_networks - type: trusted_networks
trusted_networks: trusted_networks:
- 172.31.1.81/32 - 172.31.1.81/32
- 172.31.1.244/32
trusted_users: trusted_users:
172.31.1.81: 172.31.1.81:
- 03a8b3528f1145ab908e20ed5687d893 - 03a8b3528f1145ab908e20ed5687d893
172.31.1.244:
- 03a8b3528f1145ab908e20ed5687d893
- type: homeassistant
allow_bypass_login: true allow_bypass_login: true
whitelist_external_dirs: whitelist_external_dirs:
- /config - /config