Commit Graph

13 Commits

Author SHA1 Message Date
gitea_admin f919d6b25b Apply code formatting cleanup across the monitor projects
- Wrap using directives in `#region` blocks across the Battery, Boiler and NordPool sources and tests
- Expand single-statement guards and loops into braced blocks
- Realign wrapped method arguments, chained calls and continuations
- Replace target-typed `new()` with explicit generic construction and empty string literals with `string.Empty`
- Flatten the boiler config expression and reindent the remaining touched files
2026-12-01 12:33:31 +02:00
gitea_admin 24729ee267 Apply code formatting cleanup across monitor projects
- Reindent appsettings.json and the MSBuild project files
- Collapse single-statement guard blocks and tidy using and member order
- Normalize XML doc indentation and file endings
- Reorder BatteryMonitor test-data helpers and move the exclusion tests into
  their own region
- Carry the same formatting through the boiler config, control, entity and
  test files
2026-11-30 11:52:06 +02:00
gitea_admin 41ac93733e Clear Qodana findings in monitor runtime code
- Guard logger calls with IsEnabled so value-type arguments are not boxed
  when the level is disabled
- Make helper members static, narrow write-only properties to init or
  private get, and delete members no call site reaches
- Flatten nested conditionals and convert if/else chains into switch and
  ternary form
- Drop the unused *MonitorInit interfaces; NetDaemon instantiates the
  concrete app classes
- Drop the unused IConfiguration parameter from AddNordPool and
  AddPowerMonitor, and the unused IEntityManager.CreateEntitiesAsync
- Remove the ignored parameters of the boiler run-time tracker stub
- Pin the NordPool DTO price mapping explicitly so the getter use is
  visible to static analysis
- Fail Qodana on any finding and record the registration changes in
  AGENTS.md
2026-11-29 21:42:47 +02:00
gitea_admin 5777e641f6 Add shared test data builders and Qodana configuration
- Extract per-monitor *TestData helper classes and rework tests to use them
- Add boiler run-time tracker abstraction (implementation pending)
- Drop unused NordPool init/update-result types and stale PLAN.md
- Add qodana.yaml with the inspection set to keep the analysis focused
2026-11-29 21:30:13 +02:00
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 e6bf8258bb Update 2026-06-28 13:58:35 +03:00
Marius 42e8db4999 feat: add PowerMonitorInit orchestrator with polling and re-discovery button
Made-with: Cursor
2026-03-17 12:59:44 +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 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