Repository navigation
Add tariff counter support (Tariff 1 & 2) for import/export - #1136
Merged
Merged
Conversation
Resolved AmsData::apply() onto main's 3-arg signature (tariff falls through to the accumulated switch; std::max to match main) and re-applied the tariff counter assignments onto main's rewritten IEC6205675 obis181/182 block. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
gskjold
added a commit
that referenced
this pull request
Jun 12, 2026
Follow-up to #1136: source Tariff 1 & 2 counters from DSMR (IEC6205621) and additional IEC6205675 (DLMS) paths; wire up the previously-unused T1/T2 OBIS constants.
gskjold
added a commit
that referenced
this pull request
Nov 19, 2026
The Croatian Iskra IE.5 frames without OBIS codes (0x21, #1072, and 0x1C, #1174) carry 1.8.1/1.8.2 and 2.8.1/2.8.2, but the positional decoder skipped them, so the tariff counters added in #1136 stayed at zero and the dashboard showed only the total. Add the #1174 frame as a fixture (meter serial masked) and a test that decodes both frame types twice, as a device does: the first frame only identifies the meter as Iskra. Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Adds support for separate tariff-based accumulated energy counters (Tariff 1 and Tariff 2) for both active import and export. Enables detailed tracking of energy consumption across different rate periods.
Fixes: Landis+Gyr parser bug where tariff values were read from meter but not stored.
Changes
Core Data Model
activeImportCounterTariff1/2andactiveExportCounterTariff1/2fields with gettersapply()methods to handle OBIS tariff values (gr=8, tariff=1/2) and copy tariff counters between instancesMeter Parsers
MQTT Integration
tPIT1,tPIT2,tPOT1,tPOT2fields to list3/list4 JSON/meter/import/export/active/accumulated/tariff1and/tariff2Web UI
ict1,ict2,ect1,ect2fields to data APICompatibility
tPI,tPO)Testing