Skip to content

point at the setting when an inverter reports no DC power - #13

Merged
teian merged 1 commit into
mainfrom
fix/missing-dc-power-hint
Aug 20, 2026
Merged

teian merged 1 commit into
mainfrom
fix/missing-dc-power-hint

Conversation

@teian

@teian teian commented Aug 20, 2026

Copy link
Copy Markdown
Owner

SolarGehannWR1 (SB 2500) shows Tracker 1 · 0,00 W beside 372,00 V and
1,24 A, and the average efficiency stays empty — while the energy view shows
2.42 kW peak and 5.69 kWh for the same day.

Not a decoding bug

DcMsVol and DcMsAmp arrive and are stored; DcMsWatt never does. Older
inverters simply do not send it. SBFspot covers exactly this with
CalculateMissingSpotValues, and the plant's own SBFspot_wr1.cfg has it set:

# Calculate Missing SpotValues
# eg: Pdc1 = Idc1 * Udc1
CalculateMissingSpotValues=1

smalog has the same option — service.calc_missing_spot — with the same
arithmetic, off by default like SBFspot's. It was simply never on for this
plant, so the string power stayed at zero. With it on, that tracker reads
37200 · 1240 / 100000 = 461 W.

What changes

Nothing about the arithmetic; only the silence around it. The collector logs a
hint, once per inverter, when a tracker reports voltage and current but no
power while the option is off:

inverter reports DC voltage and current but no DC power; set
service.calc_missing_spot = true to derive it (SBFspot CalculateMissingSpotValues)

InverterData::dc_power_missing() is the predicate behind it, and it is
deliberately narrow: a string that is genuinely dark reports 0 V and 0 A and
does not trigger it.

The configuration reference now says when to set the option, and
docs/operations.md gains a section under "diagnosing a silent inverter" that
also explains how to tell a refused query from one that answered with zeros
(System → Transmissions, filtered to spot.dc_power: nicht verfügbar
versus ok).

Testing

cargo test --workspace --locked (295 passed) and
cargo clippy --workspace --all-targets --locked -- -D warnings are clean. New
tests cover the field case (372 V, 1.24 A, no power), a dark string, an
inverter that does report power, and that deriving it yields SBFspot's 461 W.

An inverter that never sends DcMsWatt — the SB 2500 among them — has its
string power stored as zero. The device statistics then show 0 W beside a
real 372 V and 1.24 A, and the average efficiency stays empty, with nothing
saying why. SBFspot covers this with CalculateMissingSpotValues, and smalog
has the same option in service.calc_missing_spot, off by default; there was
just no way to find out that it is what is missing.

The collector now logs a hint, once per inverter, when a tracker reports
voltage and current but no power and the option is off. The arithmetic it
points at is unchanged and matches SBFspot: 37200 · 1240 / 100000 = 461 W
for the inverter above.

Documented in the configuration reference and under "diagnosing a silent
inverter", including how to tell a refused query from one that answered
with zeros.
@teian
teian merged commit 1eb30f7 into main Aug 20, 2026
12 checks passed
@teian
teian deleted the fix/missing-dc-power-hint branch August 20, 2026 11:30
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