Skip to content

feature/per-person-presence#133

Merged
vinnie1234 merged 3 commits into
mainfrom
feature/per-person-presence
Jun 9, 2026
Merged

feature/per-person-presence#133
vinnie1234 merged 3 commits into
mainfrom
feature/per-person-presence

Conversation

@vinnie1234

Copy link
Copy Markdown
Owner

No description provided.

vinnie1234Risk and others added 3 commits June 1, 2026 19:52
Introduce separate per-person away tracking and derive the house-wide
away boolean from it.

- New PresenceScenario enum and PresenceManager app: sets
  input_boolean.awayvincent/awaycarleen from person.* + auto-away, derives
  away = both away, and runs per-scenario actions.
- Vincent-only departure notification (no notification for Carleen) and
  09:00 Carleen wake-up scheduling moved into PresenceManager.
- VincentModel/CarleenModel.IsHome now follow the per-person away booleans
  instead of the shared away boolean.
- AwayManager slimmed down to the welcome-home state machine.
- IsNightMode fix: add IsVincentNightMode so the living room stays active
  when Vincent is awake but Carleen is sleeping.
- Hall switch button 1 now toggles "everybody away".
- SleepManager clears per-person away when going to sleep.
- Remove dead WaterSensorDouche subscription (entity no longer exists).
- Tests for PresenceManager away-derivation/notification and living room
  night-mode behaviour.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Alarm: gang motion only alarms when nobody is home (!Vincent.IsHome &&
  !Carleen.IsHome), so Carleen moving around no longer triggers an alarm
  while Vincent is away.
- Remove now-unused Globals.AmIHomeCheck.
- BathRoom toothbrush idle routine now fires when either person is home.
- Drop flaky WhenTurnsOn-based notification tests (Throttle runs on the
  default scheduler, not the TestScheduler, making them non-deterministic).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vinnie1234 vinnie1234 merged commit b733831 into main Jun 9, 2026
2 checks passed
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.

2 participants