powersync-energy-plugin-etm/energyplugin/types
Patrick Schurig 0797f37c78 feat: ManualStrategy — community tier scheduling with full manual control
- Add ManualSlotConfig type with weekly repeating support and auto-expiry
- Add ManualStrategy (strategyId="manual"): applies user-defined allocations
  exactly; expired slots logged and skipped; inflexible/critical loads always
  applied as safety fallback; decisionReason never empty
- Extend SchedulerSettings with manualSlots persistence section (INI array)
- Extend SchedulerManager with setManualSlot/removeManualSlot/clearManualSlots
  methods; hydrates ManualStrategy from settings on registerStrategy()
- Add JSON-RPC v11 methods: GetManualSlots, SetManualSlot, RemoveManualSlot,
  ClearManualSlots + ManualSlotActivated push notification
- Register ManualStrategy in energypluginnymea.cpp::init() (no feature flag)
- Add 5 unit tests: basicSlot, noConfig_fallback, expiredSlot, repeatingSlot,
  persistence (JSON round-trip)
- Update doc.md section 11

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-24 06:34:31 +01:00
..
chargingaction.cpp initial commit 2026-01-11 11:09:23 +01:00
chargingaction.h initial commit 2026-01-11 11:09:23 +01:00
charginginfo.cpp initial commit 2026-01-11 11:09:23 +01:00
charginginfo.h initial commit 2026-01-11 11:09:23 +01:00
chargingprocessinfo.cpp initial commit 2026-01-11 11:09:23 +01:00
chargingprocessinfo.h initial commit 2026-01-11 11:09:23 +01:00
chargingschedule.cpp initial commit 2026-01-11 11:09:23 +01:00
chargingschedule.h initial commit 2026-01-11 11:09:23 +01:00
energytimeslot.cpp feat: SchedulerManager v1 — build clean 2026-02-23 22:02:01 +01:00
energytimeslot.h feat: SchedulerManager v1 — build clean 2026-02-23 22:02:01 +01:00
flexibleload.cpp feat: SchedulerManager v1 — build clean 2026-02-23 22:02:01 +01:00
flexibleload.h feat: SchedulerManager v1 — build clean 2026-02-23 22:02:01 +01:00
manualslotconfig.cpp feat: ManualStrategy — community tier scheduling with full manual control 2026-02-24 06:34:31 +01:00
manualslotconfig.h feat: ManualStrategy — community tier scheduling with full manual control 2026-02-24 06:34:31 +01:00
schedulerconfig.cpp feat: SchedulerManager v1 — build clean 2026-02-23 22:02:01 +01:00
schedulerconfig.h feat: SchedulerManager v1 — build clean 2026-02-23 22:02:01 +01:00
scoreentry.cpp initial commit 2026-01-11 11:09:23 +01:00
scoreentry.h initial commit 2026-01-11 11:09:23 +01:00
smartchargingstate.cpp initial commit 2026-01-11 11:09:23 +01:00
smartchargingstate.h initial commit 2026-01-11 11:09:23 +01:00
timeframe.cpp initial commit 2026-01-11 11:09:23 +01:00
timeframe.h initial commit 2026-01-11 11:09:23 +01:00