#!/bin/bash # Helper script to get IP for trusted networks setup echo "Trusted Networks Setup Helper" echo "=============================" echo "" echo "This computer's IP address:" MY_IP=$(hostname -I | awk '{print $1}') echo " $MY_IP" echo "" echo "To configure Home Assistant to trust this IP:" echo "" echo "OPTION A: Via Home Assistant UI" echo " 1. Open Home Assistant in another browser" echo " 2. Go to: Settings > People & Zones > Trusted Networks" echo " 3. Add this IP: $MY_IP" echo " 4. Save and restart Home Assistant" echo "" echo "OPTION B: Via configuration.yaml" echo " Edit your Home Assistant configuration.yaml and add:" echo "" echo " http:" echo " trusted_proxies:" echo " - $MY_IP" echo " use_x_forwarded_for: true" echo "" echo " Then restart Home Assistant" echo "" echo "After configuring, the dashboard should auto-login from this IP."