Repository navigation
Read L3 active export counter from 62.8.0, not 42.8.0 - #1287
Merged
Merged
Conversation
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
🔧 PR Build ArtifactsVersion: All environments built successfully. Download the zip files:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The OBIS path filled
l3activeExportCounterfromAMS_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