Skip to content

Janitza: fix energy register scale (from Wh to kWh)#389

Merged
andig merged 2 commits into
volkszaehler:masterfrom
premultiply:fix/janitza-energy-wh-scaling
Jun 9, 2026
Merged

Janitza: fix energy register scale (from Wh to kWh)#389
andig merged 2 commits into
volkszaehler:masterfrom
premultiply:fix/janitza-energy-wh-scaling

Conversation

@premultiply

@premultiply premultiply commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Janitza energy readings are a factor of 1000 too high (reported via evcc-io/evcc#30671, affecting a UMG604-E).

Applys a 1000 scaler fix to the energy opcodes only (Import*/Export*).
Voltage/current/power/frequency/power-factor stay in their base units (V/A/W/Hz/-) and are unchanged.

Verified register addresses and units against the B-Series manual (janitza-bhb-b2x-en.pdf).

Fix evcc-io/evcc#30671

Copilot AI review requested due to automatic review settings June 9, 2026 12:37
@premultiply premultiply changed the title Janitza: scale energy registers from Wh to kWh Janitza: fix energy register scale (from Wh to kWh) Jun 9, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds optional scaling support to Janitza RS-485 meter operations and applies Wh→kWh scaling for energy-related measurements.

Changes:

  • Extended snip to accept an optional scaling parameter and apply a composed transform.
  • Added special-case handling in Produce to scale energy registers.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread meters/rs485/janitza.go
Comment thread meters/rs485/janitza.go
Comment thread meters/rs485/janitza.go Outdated
@andig andig merged commit a18fb7d into volkszaehler:master Jun 9, 2026
3 checks passed
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.

Janitza UMG wrong energy

3 participants