Commit Graph

13 Commits

Author SHA1 Message Date
gitea_admin 1152462765 Add PowerMonitor power limit enforcement service
Introduce IPowerLimitEnforcementService and its implementation: turn off configured high-power switches and pause/restore entities when the limit is exceeded, notify via persistent_notification, and restore control after the recovery window once power drops below the limit. Includes cooldown handling and manual TriggerLimitBreach/ResetLimitBreach hooks, with FakeTimeProvider-based tests covering enforcement, recovery, cooldown and debug paths.

Add opencode.json wiring the HomeAssistant MCP server, the .junie MCP config files, and the implementation plan in PLAN.md.
2026-11-29 13:58:28 +02:00
gitea_admin f0bbd4f10b Enable PowerMonitor limit enforcement and prune unused boiler/replay code
PowerMonitor now ships enabled with power-limit enforcement settings: watt limit, recovery and cooldown windows, and switch-off plus pause/restore entity lists.

Remove the unused BoilerRunTimeTracker, its DI registration and tests, the StatusCleanedUp constant, and the boiler replay runner; simplify BoilerConfigReader, control-service logging and entity parsing. Switch CostAccumulator to System.Threading.Lock, update the Shower exhaust fan service and tests, drop the legacy HistoryReplay/McpServer sources and reporting tooling, and expand AGENTS.md with the current project wiring and DI notes.
2026-11-29 13:58:08 +02:00
Marius 6e4d684359 feat: add BatteryMonitor implementation with discovery, notification, and scheduling services 2026-04-01 10:55:33 +03:00
Marius 11c2574235 feat: migrate boiler control implementation to BoilerMonitor namespace and add budget handling logic 2026-03-24 15:29:59 +02:00
Marius 4c6b6938e8 feat: add PowerMonitor service registration and default configuration tests 2026-03-19 16:32:47 +02:00
Marius 33d915f7b4 feat: add PowerMonitorEntityService with system and per-device MQTT entities
Made-with: Cursor
2026-03-17 12:57:45 +02:00
Marius 7f0ebcf826 feat: add PowerCostCalculationService with per-device cost accumulators
Made-with: Cursor
2026-03-17 12:55:25 +02:00
Marius b0fd790ba6 feat: add PowerSensorDiscoveryService with auto-discovery and exclusion patterns
Made-with: Cursor
2026-03-17 12:53:31 +02:00
Marius c77f854682 feat: add OtherPowerCalculationService with EMA smoothing and TDD tests
Made-with: Cursor
2026-03-17 12:50:16 +02:00
Marius ec722ee80a test: add CostAccumulator unit tests for all window boundaries and thread safety
Made-with: Cursor
2026-03-17 12:49:04 +02:00
Marius a3417d0e97 feat: scaffold PowerMonitor projects and add to solution
Made-with: Cursor
2026-03-17 12:44:42 +02:00
Marius 27648ae57c Remove PowerMonitor.Manager project and its dependencies 2026-03-10 12:27:06 +02:00
Marius 861c344832 Init 2026-03-08 19:10:16 +02:00