mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2026-11-25 15:06:20 +01:00
A re-plan treated a running home appliance as not started. In its start slot it could pick another start of equal cost and switch the appliance off; after the start slot it could only plan a new complete run later; and when no complete run fitted into the rest of the window, the DAILY cycle was dropped and the running appliance got OFF. The executor now reports the start of a planned run as UNIX seconds under `<device_id>.run_started_at` (setting `run_started_measurement_key`) and 0 when the device reports the run as finished. The device decides when that is, also before or after the configured duration. Until then the GENETIC optimizer places the remaining energy from now on as fixed load, independent of windows, deadline and genes, sends RUN, counts the run as a cycle of its start day and plans further cycles after its end and gap. A run past its duration keeps the current slot without extra energy; a start more than two run durations ago, or an invalid value, is logged and ignored. Refs: #1548 Signed-off-by: SchaafAlexander <86607129+SchaafAlexander@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Assisted-by: Claude Code (claude-opus-5-5)
639 KiB
639 KiB