Skip to main content

Canonical technical source, synchronized from the repository at build time. GitHub

Feature 014: flexible activities, comfort policies and independent loads

Status: 0.17.0 planning and shadow-observation implementation; deployment verification recorded separately. Live execution remains deferred. Extends features 002/003/004/009/010/011. Household feedback and observed data stay outside this repository. No live-device activation is authorized by this specification.

Outcome​

Plan the intended household experience rather than reproduce every observed switch transition. An exceptional short dinner must not silently change ordinary meal defaults. Separate meal style/duration, room activities, lighting layers, fans and HVAC demand. Model additional outlet loads without treating all outlets like lights.

Functional requirements​

  • AC-FR-001: Each dated meal offers Very early/short, Family, Entertaining/guests and Custom timing presets, separately from eating at home/away and hosting status. Presets expose editable start, meal duration and cleanup buffer, with resulting local times. A short meal does not imply a household identity or age. Retain candle-lighting offsets for evening timing and separate HVAC lead/release from lighting. Never change existing saved defaults or frozen plans automatically; exact preset values remain configurable and require review.
  • AC-FR-002: Support multiple dated activity windows per room, including daytime recreation in common areas and opt-in playtime in bedrooms. Windows select main/night/custom lighting, optional HVAC policy and independent fan demand. Offer local clock time, approved anchor offsets, duration or day-end termination. Sleeping, playtime and naps may coexist in the same room. Display explicit resolution of conflicting sleep-light cutoff versus playtime; compatible demands union without prematurely switching shared loads off.
  • AC-FR-003: Allow per-load/subgroup lighting participation in evening meals, daytime meals, daytime entertaining, recreation, night and morning. A secondary hall circuit may participate at night and for daytime hosting but not ordinary daytime meals. Do not force all loads assigned to a room to share every phase.
  • AC-FR-004: Provide independent service/access/hallway schedules without requiring sleep or recreation usage. Policies include leave unchanged/not scheduled, selected home windows, night-only, daytime-only and throughout while home. Enable selected bedroom-hallway nightlights at candle lighting (configurable offset) even when their morning Off is owned by an existing automation. Optional kitchenette/access lighting can remain excluded; exclusion is not an implicit Off command. Distinguish service scheduling role from permanent HA area type.
  • AC-FR-005: Keep bathroom daylight suitability explicit per bathroom (sufficient daylight / no suitable daylight / not assessed). Suggest a daylight break only for confirmed suitable bathrooms; do not infer it from names, floor or weather. Allow homeowner overrides and independent main/background overnight changeover. Select exact light circuits; do not automatically include all bathroom lights. No end-of-observance shutoff by default.
  • AC-FR-006: For each room/activity, select HVAC policy: leave existing control, do not request HVAC, scheduled throughout demand, or temperature-gated demand. Fan selection is independent, allowing fan-only, HVAC-only, both or neither. Bedrooms can deliberately request HVAC throughout sleep regardless of common-area temperature policies. Wake release and subsequent playtime demand are independent; choosing Standard versus Late must visibly change resulting wake times.
  • AC-FR-007: Temperature gating combines an explicit eligible meal/activity/home window with a selected temperature sensor, operating mode, comparison target and configurable tolerance. Default sensor candidate is the HVAC current-temperature attribute when valid; permit a separate room sensor. Cooling demand is current temperature greater than target plus tolerance; heating demand is current temperature less than target minus tolerance. Show the strict comparison and units. Do not use absolute deviation or automatically change heat/cool modes. Off/auto/unknown mode requires an explicitly reviewed operating interpretation before eligibility; do not guess a previous mode.
  • AC-FR-008: Separate the comfort-comparison target from commands to the thermostat. The owner chooses a frozen pre-observance thermostat target or explicit comparison target. Changing a comparison target must not issue a set-temperature command. Preserve-settings execution still needs the verified resume adapter in feature 010. A stale/off-season thermostat setpoint is not proof of discomfort; offer period-level fan-only/disabled-HVAC choices even when the threshold would be exceeded.
  • AC-FR-009: Specify configurable enable/disable hysteresis, minimum On/Off dwell and bounded reevaluation before any temperature-gated executor is implemented. Demand start/end, lead times, overlaps, absent/unavailable/stale sensor behavior, manual interventions and restart recovery must be explicit and previewed. Freshness must use provider-appropriate evidence; HA last_updated alone is not proof of a new temperature measurement. Unsupported or unverifiable inputs block gated activation. No corrective tight loops or implicit switching of independently owned loads.
  • AC-FR-010: Optional room-activity signals (selected lights/switches already On or transitioning) may gate a reviewed daytime HVAC window, but never establish occupancy or override sleep/day-end eligibility. This is opt-in and separate from fixed schedule mode; identify planner-controlled signal feedback and reject cyclic dependencies. Manual/existing-control signals cannot be assumed available after household routines change.
  • AC-FR-011: Model ceiling/portable fans as independently mapped physical loads, with their own activity windows, lead/release and existing-automation ownership. Native fan entities and outlet/switch-powered fans require separate capability/resume verification. Do not silently set speed, oscillation or HVAC fan mode; those are distinct controls. Unverified devices remain preview/track-only.
  • AC-FR-012: Add configurable outlet-controlled appliance groups (for example warming equipment, slow cookers, service nightlights). Capture semantic load type, intended On/Off windows, initial-state responsibility, power-loss/resume behavior and explicit end-of-period policy. Outlet capability alone does not prove appliance suitability. No generic toggle, cycle restart or recovery replay for an unknown appliance; eligibility requires reviewed device/load behavior and applicable owner constraints. A light attached to an outlet can use a lighting policy only when explicitly classified. Appliance execution remains outside feature 010's first live increment.
  • AC-FR-013: HTML/PDF previews distinguish fixed commands, conditional eligibility windows, predicted gate decisions under a named historical dataset and existing-automation actions. Future temperature is unknown: never draw unconditional HVAC On bars for a conditional window. Observe mode logs gate inputs, eligibility, threshold decisions and reasons without controlling devices. Preserve source snapshot, tolerances, mode and algorithm version for reproducible replay.
  • AC-FR-014: Feedback classifies differences as intentional future behavior, exceptional period, configuration mismatch, comfort issue, missing observation or uncertain. Lack of historical background-light use must not score an intended new night profile as unwanted. Record reported fan comfort separately from measured fan runtime. Proposals change only reviewed future drafts.

Nonfunctional requirements​

  • AC-NFR-001: Versioned additive schema/migration; old drafts retain identical compiled events/digests until explicitly edited. New policies default inactive; no implicit save, arming or device changes.
  • AC-NFR-002: Multilingual catalogs with English/Hebrew defaults, RTL, keyboard-accessible controls, HH:MM duration/offset fields and explanations of leave unchanged versus request Off. Keep ordinary weekly choices concise; advanced hysteresis/device qualification stays in setup.
  • AC-NFR-003: Deterministic replay given frozen schedule, policy, temperature/activity samples and evaluation version. Test exact threshold equality, heating/cooling direction, C/F conversion, unknown/missing/stale data, dwell/hysteresis, clock changes, DST, multi-day periods and boundary clipping. Hourly replay cannot claim minute-level gate decisions or predict temperature after hypothetical actuation.
  • AC-NFR-004: Resolve shared physical-load ownership across schedules, conditional policies, fans, outlet groups and existing automation. Recovery uses approved current intent and confirmed ownership; cannot replay unknown appliance cycles or bypass manual holds. Detailed execution invariants extend feature 010 before activation.
  • AC-NFR-005: Household names, device IDs, comfort reports, source exports and inferred preferences stay out of public repository data. Fictional fixtures only; reported comfort, observed state, predicted decision and causal claims remain distinguishable.
  • AC-NFR-006: Bound evaluation frequency/work per configured load; no browser dependency for any future armed runner. Sensor outages, restarts and long observations expose gaps, not fabricated decisions. No new runtime dependency/provider is selected by this feature.

Acceptance scenarios​

  1. A short dinner leaves ordinary Family/Entertaining defaults unchanged and retains candle-based timing; cleanup and bedroom preconditioning can differ.
  2. A common-area recreation window spans late morning through afternoon independently of lunch; a bedroom has playtime before bedtime without accidentally extending sleep lighting.
  3. A windowed bathroom uses a daylight break; a windowless bathroom retains requested light. A second powder-room circuit remains excluded.
  4. Hall nightlights get a planned evening On and an attributed existing sunrise-relative Off. Optional access lighting stays unscheduled with no forced Off.
  5. Cooling 22 C with tolerance 1 C does not request On at exactly 23 C; 23.1 C can request On only within eligible demand and subject to dwell. Heating reverses comparison. Fan-only remains fan-only despite high deviation.
  6. A comfortable fan-only room is not automatically changed to HVAC based on its old setpoint. Post-wake playtime can request conditional HVAC without extending overnight operation.
  7. A heating appliance on an outlet cannot inherit light recovery semantics. Unsupported fan/appliance control is blocked, while preview remains available.
  8. Conditional report bars cannot masquerade as fixed On forecasts; interrupted hourly evidence produces unknown decisions. English/Hebrew views expose the same policies.

0.17.0 implementation decisions​

  • Additive plan.flex.version = 1; no extension means unchanged compilation. Weekly activity choices are saved with the dated plan. Existing room setup remains reusable; no automatic migration or saving.
  • Explicit meal presets: Early 90 minutes plus 30 cleanup, Family 180 plus 60, Hosting 240 plus 60. Custom preserves original end. Every duration is editable; selecting a preset never rewrites the original meal start.
  • Activity windows use local timestamps or persisted candle/sunrise/sunset/segment-end offsets. Meal-linked windows follow meal end including cleanup and are skipped for away/none meals. Per-load replacement removes other demands across the entire period, with a visible warning; exclusion issues no Off.
  • Service windows support night/day/whole-period starting presets. Release can request Off, defer to existing automation, or leave unchanged. Final shutoff remains controlled by the existing opt-in setting. Playtime overlapping sleep requires explicit review; contradictory fixed actions still fail compilation.
  • Bathroom daylight suitability is a saved setup field. Existing daylight policies remain until explicitly edited; suitability is not inferred and does not silently rewrite a policy.
  • Comfort defaults are explicit Cooling, 23 C comparison, 1 C tolerance, 0.5 C return band, 15-minute On and 10-minute Off dwell. They are editable examples, not household preferences. Thermostat-copy freezes the available inventory reading into the plan; no setpoint command. Conditional loads require explicit replacement; overlapping fixed/conditional or multiple conditional windows on the same unit are rejected.
  • Observer uses existing bounded ticks; records decision/reason changes and hourly evidence, capped at 20,000 records. Missing/unavailable/restored readings and recovery gaps produce Unknown. Provider measurement freshness is unverified and is displayed as such. Planner-controlled activity signals produce Unknown instead of reinforcing demand. No conditional action is eligible for live execution.
  • Fans/appliances are independent binary track-only mappings. Initial-state and resume metadata are planning declarations, not hardware qualification. No speed/mode/cycle changes.
  • Feedback classifications are dated plan metadata and appear in exported summaries. They do not automatically adjust schedules or implement the full longitudinal feedback service.

Remaining qualification​

Provider freshness, manual-hold semantics, live recovery, HVAC native resume and fan/outlet hardware behavior remain Feature 010 qualification work. No live control is exposed by this release. Full mobile/PDF device acceptance and household acceptance remain separate from automated tests and local desktop visual checks.