From cd226f9298308887e031ff76071e0a4458c19df3 Mon Sep 17 00:00:00 2001 From: kyle Date: Wed, 31 Dec 2025 04:27:00 -0800 Subject: [PATCH] Add setup-trusted-network.sh --- setup-trusted-network.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 setup-trusted-network.sh diff --git a/setup-trusted-network.sh b/setup-trusted-network.sh new file mode 100644 index 0000000..cb5b1df --- /dev/null +++ b/setup-trusted-network.sh @@ -0,0 +1,29 @@ +#!/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."