Staying home long enough made the automation think I had left
Since when does being at home also count as being away?

I found a bug in my Home Assistant presence logic that punishes staying in.
The rule was there to protect against a stale tracker. It only trusted a home state if that state had changed in the last twelve hours. The problem is which timestamp it looked at. It used the time of the last state change, not the time the tracker last reported in.
If you go out and come back, the state changes and the clock resets. If you stay home all day, the tracker keeps reporting home quite happily, but the state itself never changes. After twelve hours the rule decides the evidence is too old and can start treating you as away. Spend a long, lazy day indoors or work from home and the house may conclude you’ve left.
I found this by reading the config, not because the lights did something strange. I haven’t fixed it yet, and I can’t point to anything it has actually done. It may have switched something off on a slow weekend and I blamed something else. I don’t know.
The fix is to stop one timestamp answering several questions. What is the state? When did the tracker last report? Is the state unknown or unavailable? A long stretch at home with fresh reports should stay home. A tracker that has gone quiet needs its own staleness check, an absence of a state change or unknown should not he treated like a home or away signal.
The fit on the list for before the next truly quiet and dull weekend at home