Here’s a concise Discord post for both of us:
Hey There, i need some input.
Goal: Control a Shelly plug (camera) based on our presence.
- If either of us is home → plug OFF.
- If we’re both away → plug ON.
Setup: HA Core (local only), FRITZ!Box + repeater (SSID “LV-426”). Phones: Pixel 8 Pro (me) & Pixel 9 Pro (partner) with Companion App.
Available sensors: *_wi_fi_state, *_wi_fi_connection (SSID), *_wi_fi_bssid, *_wi_fi_ip_address. Optional: FRITZ!Box device_tracker, Ping.
Best approach to detect us both reliably?
- App-only Wi-Fi:
Wi-Fi state == onAND (SSID/BSSID whitelist OR IP prefix), with ~120s debounce for “away”. - Hybrid: (App Wi-Fi OR FRITZ!Box tracker OR Ping), first hit wins.
Any proven patterns, Android gotchas (Doze/permissions), or recommended debounce for “both away”? Happy to share package drafts.