EV-52: log one plain line for a new car current and a car mode change #279

Merged
ems-agent merged 5 commits from EV-52 into release/1.0 2026-11-29 14:54:39 +01:00
Collaborator

EV-52: log one plain INFO line when the add-on writes a new car current, and one when the car mode changes. Logging only: R2, no control change.

  • Car: set from 10 A to 6 A on 1 phase (Manual). / Car: set to 6 A on 1 phase (Manual). / Car: set to 6 A (Manual). after a write the charger took. Reasons: Manual, Solar, peak cut, start-up, shutdown.
  • Car mode is now Manual. at each mode change and once at start-up (only with a charger set up).
  • A refused or failed write keeps its warning and logs no "set" line. A write taken late logs its line once, at the accept (PM ruling Q2).
  • Wired in ManualWriter._write (the one write site); callers pass the reason and phase count. Mode line in _car_action and car_init.
  • Same writes at the same times as base: test_ev52.py T43/T45 compare against lists taken on 02166e2.

Tests: new goodwe_controller/test_ev52.py (T1-T45, N1-N11 of the test plan). Brief v2, ticket EV-52.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w

EV-52: log one plain INFO line when the add-on writes a new car current, and one when the car mode changes. Logging only: R2, no control change. - `Car: set from 10 A to 6 A on 1 phase (Manual).` / `Car: set to 6 A on 1 phase (Manual).` / `Car: set to 6 A (Manual).` after a write the charger took. Reasons: Manual, Solar, peak cut, start-up, shutdown. - `Car mode is now Manual.` at each mode change and once at start-up (only with a charger set up). - A refused or failed write keeps its warning and logs no "set" line. A write taken late logs its line once, at the accept (PM ruling Q2). - Wired in `ManualWriter._write` (the one write site); callers pass the reason and phase count. Mode line in `_car_action` and `car_init`. - Same writes at the same times as base: `test_ev52.py` T43/T45 compare against lists taken on 02166e2. Tests: new `goodwe_controller/test_ev52.py` (T1-T45, N1-N11 of the test plan). Brief v2, ticket EV-52. 🤖 Generated with [Claude Code](https://claude.ai/code) https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
ems-agent added 2 commits 2026-11-29 07:50:21 +01:00
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
EV-52: charger-less stubs, CHANGELOG, EV-28/EV-51 log rows set the two new lines aside
checks / unit (pull_request) Successful in 47m21s
infra-pin / fresh (pull_request) Successful in 1s
ca06456ffa
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
ems-agent added 1 commit 2026-11-29 09:49:56 +01:00
EV-52 round 1: Manual late-accept line (Q2), N5, N8, T44 rows
checks / unit (pull_request) Successful in 44m57s
infra-pin / fresh (pull_request) Successful in 1s
fd1cb423b1
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
ems-agent added 1 commit 2026-11-29 11:55:55 +01:00
EV-52 round 2: a refused Manual try is not logged later by another source's value
checks / unit (pull_request) Successful in 44m13s
infra-pin / fresh (pull_request) Successful in 2s
2931e6e852
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
ems-agent added 1 commit 2026-11-29 14:08:51 +01:00
EV-52 review round 2: test row for Solar's late try cleared on leave
checks / unit (pull_request) Successful in 45m23s
infra-pin / fresh (pull_request) Successful in 1s
64991d7cde
Test only. Kills a mutant that drops the _late clear in SolarWriter._leave(), which no row covered.

Co-Authored-By: Claude <noreply@anthropic.com>
ems-agent merged commit bdfd3e6848 into release/1.0 2026-11-29 14:54:39 +01:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/goodwe-addon#279