Skip to content

Phone off the home Wi-Fi for 30 minutes counts as not home - #120

Merged
ncbudd merged 2 commits into
mainfrom
feat/phone-wifi-away
Nov 27, 2026
Merged

ncbudd merged 2 commits into
mainfrom
feat/phone-wifi-away

Conversation

@ncbudd

@ncbudd ncbudd commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Root cause

The phone app's own Wi-Fi report (wifi_home) was only ever used as "home". With phone location off or no home spot saved, a person who left for days stayed "unknown": their empty side still pre-conditioned every evening, and the "you're not home" question (Wait an hour / Off tonight / Start anyway) never came. A Home Assistant Wi-Fi tracker already counts as away after a while off the network; the phone's own report didn't.

Fix

  • phone_context: tracks since when the phone has said it's off the home Wi-Fi (wifi_off_since; a report after a silence longer than the Wi-Fi staleness starts afresh, switching Wi-Fi sharing off forgets it). After 30 min off, with a fresh report, and only when nothing else says where the person is (location, devices, the bedside dial), the person counts as not home, with the reason in plain words.
  • New person setting wifi_off_away (default on) and a switch in Settings → Watch, ring and pets: "Off the home Wi-Fi means away".
  • Getting into bed still starts the night as before (presence doesn't depend on home), so someone home on mobile data isn't left without a bed.

Verification

  • New tests/test_phone_wifi_away.py (9 tests, incl. a full evening: off the Wi-Fi 31 min at pre-cool time → state "away", side off) and updated test_phone_context.py (with the setting on and off).
  • Full server suite: 2122 passed, 21 skipped, 5 xfailed. npx tsc --noEmit -p . clean.

Release note

When your phone has been off your home Wi-Fi for 30 minutes and nothing else says you're home, your side now waits at pre-cool time and asks you (Wait an hour, Off tonight, Start anyway) instead of cooling an empty bed. Turn it off under Settings → "Off the home Wi-Fi means away".

@ncbudd
ncbudd merged commit 31be68b into main Nov 27, 2026
15 checks passed
@ncbudd ncbudd mentioned this pull request Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant