Repository navigation
point at the setting when an inverter reports no DC power - #13
Merged
Merged
Conversation
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.
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.
SolarGehannWR1(SB 2500) showsTracker 1 · 0,00 Wbeside372,00 Vand1,24 A, and the average efficiency stays empty — while the energy view shows2.42 kW peak and 5.69 kWh for the same day.
Not a decoding bug
DcMsVolandDcMsAmparrive and are stored;DcMsWattnever does. Olderinverters simply do not send it. SBFspot covers exactly this with
CalculateMissingSpotValues, and the plant's ownSBFspot_wr1.cfghas it set:smalog has the same option —
service.calc_missing_spot— with the samearithmetic, 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:
InverterData::dc_power_missing()is the predicate behind it, and it isdeliberately 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.mdgains a section under "diagnosing a silent inverter" thatalso explains how to tell a refused query from one that answered with zeros
(System → Transmissions, filtered to
spot.dc_power:nicht verfügbarversus
ok).Testing
cargo test --workspace --locked(295 passed) andcargo clippy --workspace --all-targets --locked -- -D warningsare clean. Newtests 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.