Skip to content

Read L3 active export counter from 62.8.0, not 42.8.0 - #1287

Merged
gskjold merged 1 commit into
mainfrom
fix/l3-active-export-counter
Nov 5, 2026
Merged

gskjold merged 1 commit into
mainfrom
fix/l3-active-export-counter

Conversation

@ArnieO

@ArnieO ArnieO commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

The OBIS path filled l3activeExportCounter from AMS_OBIS_ACTIVE_EXPORT_L2_COUNT (42.8.0) a second time, so L3 export energy always equalled L2. AMS_OBIS_ACTIVE_EXPORT_L3_COUNT (62.8.0) was defined but never used.

Affects meters that send per-phase export energy (e.g. Danish Kamstrup list with 22/42/62.8.0).

Test: kamstrup/gh216-1: L3 export counter 77 690.132 kWh (was 70 537.500, the L2 value). Golden master unchanged (it does not record per-phase counters).

(The web editor also added a final newline to the file.)

🤖 Generated with Claude Code

https://claude.ai/code/session_01LAhKXXvV3q3Ro13EackZPq

The OBIS path looked up AMS_OBIS_ACTIVE_EXPORT_L2_COUNT a second time when
filling l3activeExportCounter, so L3 always repeated the L2 value.
Kamstrup gh216-1 (has 22/42/62.8.0): L3 now 77690.132 kWh instead of 70537.500.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LAhKXXvV3q3Ro13EackZPq
@github-actions

Copy link
Copy Markdown

🔧 PR Build Artifacts

Version: a8a3fa9

All environments built successfully. Download the zip files:

Artifacts expire after 7 days. View workflow run

@gskjold
gskjold merged commit 5d59a84 into main Nov 5, 2026
8 checks passed
@gskjold
gskjold deleted the fix/l3-active-export-counter branch November 5, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants