Skip to content

Kaifa KFM_001 with OBIS codes: scale voltage and current when no scaler is sent - #1291

Merged
gskjold merged 7 commits into
mainfrom
fix/kaifa-se-obis-scaling
Nov 5, 2026
Merged

gskjold merged 7 commits into
mainfrom
fix/kaifa-se-obis-scaling

Conversation

@ArnieO

@ArnieO ArnieO commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Swedish Kaifa meters (MA304H4 and others, #242, #558, #629) send the KFM_001 list with OBIS codes but without a scaler. The OBIS path then reads voltage (0.1 V) and current (0.001 A) as V and A: 2322 V, 32 A. Users have been told to set multipliers V 0.1 / A 0.001. The positional KFM_001 path used by Norwegian meters already applies /10 and /1000.

The scaling is applied only when all of these hold:

  • list id is KFM_001 (0.2.129)
  • the 32.7.0 value has no scaler
  • the user's voltage/amperage multiplier is unset (0)

Users who already compensate with multipliers keep their readings. Energy counters are not touched.

Fixture Before After
kaifa/gh242-1 (SE, OBIS-coded, no scaler) 2322 V / 32 A 232.2 V / 0.032 A
gh242-1 with multipliers 0.1 / 0.001 set 232.2 V / 0.032 A unchanged
kaifa/gh493-1 (NO, positional) 236.7 V unchanged
kaifa/gh539-4 (AT, scaler, no KFM_001) 233.0 V unchanged

Only one Swedish source frame exists in the corpus (#242, rebuilt from the DSO's annotated breakdown); other Swedish DSOs may differ.

Also on this branch: fixture metadata fix. gh905-1 is a raw M-Bus capture and the reporter is not in Poland. The Polish Stoen Kaifa meters in the corpus use encrypted P1/DSMR (#986, #1067). Manifest updated accordingly.

(The web editor also added a final newline to IEC6205675.cpp and manifest.json.)

🤖 Generated with Claude Code

https://claude.ai/code/session_01LAhKXXvV3q3Ro13EackZPq

ArnieO and others added 7 commits October 19, 2026 14:13
…er is sent

Swedish Kaifa meters (MA304H4 and others, #242, #558, #629) send the KFM_001
list with OBIS codes but no scaler, so the OBIS path read voltage in 0.1 V
and current in 0.001 A as V and A (2322 V, 32 A). The positional KFM_001 path
used by Norwegian meters already applies /10 and /1000.

The scaling is applied only when the list id is KFM_001, the voltage value has
no scaler, and the user has not set a voltage/amperage multiplier. Users who
already compensate with multipliers keep their readings unchanged. Austrian
Kaifa (scaler present, no KFM_001 id) and Norwegian Kaifa are not affected.

gh242-1: 232.2 V / 0.032 A (was 2322 V / 32 A). gh242-2, gh493-1, gh539-4
unchanged.

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: 8b08c0b

All environments built successfully. Download the zip files:

Artifacts expire after 7 days. View workflow run

@gskjold
gskjold merged commit d4e7b40 into main Nov 5, 2026
8 checks passed
@gskjold
gskjold deleted the fix/kaifa-se-obis-scaling branch November 5, 2026 13:52
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