Skip to content

Iskra AM550 SI: decode the 15-minute energy frame (96.3.10 as Enum) - #1289

Open
ArnieO wants to merge 2 commits into
mainfrom
fix/iskra-si-energy-enum
Open

ArnieO wants to merge 2 commits into
mainfrom
fix/iskra-si-energy-enum

Conversation

@ArnieO

@ArnieO ArnieO commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

The 12-item Iskra AM550 energy frame from Elektro Ljubljana (struct 0x0C, ISK… device name) sends 96.3.10 disconnect control as Enum (0x16). Since 067aa0c (Dec 2024) that branch only accepts Boolean, so these 15-minute frames are ignored and 1.8.0–4.8.0 are never read.

  • Accept Enum as well as Boolean.
  • The energy frame leads with 96.1.3, the 1 s frame with 96.1.2, and they differ on these meters (16820006 vs 16820005). The energy frame now sets meterId only when none is known, so the id (MQTT topic, HA entity) does not flip between frames.

Test: gh615-2, gh615-4, gh956-2 now decode (e.g. gh956-2: 1.8.0 = 471.547 kWh, 2.8.0 = 44.620 kWh). A gh956-1 → gh956-2 → gh956-1 sequence keeps id 16820005. Golden master updated for the three fixtures.

Related: #615, #956.

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

🤖 Generated with Claude Code

https://claude.ai/code/session_01LAhKXXvV3q3Ro13EackZPq

ArnieO and others added 2 commits October 19, 2026 14:10
The 15-minute energy frame from Elektro Ljubljana (struct 0x0C, ISK... device
name) carries 96.3.10 disconnect control as Enum (0x16). Since 067aa0c the
branch only accepted Boolean, so these frames gave no values at all.
Fixtures gh615-2, gh615-4 and gh956-2 now decode 1.8.0/2.8.0/3.8.0/4.8.0.

The energy frame leads with 96.1.3 while the 1 s frame leads with 96.1.2,
and the two differ on these meters (16820006 vs 16820005). The energy frame
now sets meterId only when none is known, so the id no longer flips.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LAhKXXvV3q3Ro13EackZPq
gh615-2, gh615-4 and gh956-2 now decode 1.8.0 (list type 3).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LAhKXXvV3q3Ro13EackZPq
@github-actions

Copy link
Copy Markdown

🔧 PR Build Artifacts

Version: cf089a6

All environments built successfully. Download the zip files:

Artifacts expire after 7 days. View workflow run

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.

1 participant