Repository navigation
Conversation
…r (1.2.4) MPPT current and voltage live in SolarEdge's own block past Model 103 (scale factors at 40123, strings at 40140 and 40160), and many inverters do not have it. 1.2.3 sent 0 V and 0 A for a string whose register, or whose scale factor, did not answer, which reads as a string producing nothing. After three misses those registers were also never asked again until restart. A value is now sent only when its register and its scale factor both answered; otherwise the field and its metric are left out. Every register that misses three times is asked again every five minutes, not only the serial number, and a short reply counts as a miss. Two harness tests cover it: test_solaredge_pv_mppt_absent.lua refuses the block, its scale factors and one string, then lets the block answer after it was given up; test_wakes_after_silence.lua checks every register is asked again within five minutes. 1.2.3 fails both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Fredrik Ahlgren <fredrik@sourceful-labs.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
miravoss26
reviewed
Dec 5, 2026
miravoss26
left a comment
There was a problem hiding this comment.
solaredge_pv 1.2.4: an MPPT value is now sent only when both its register and its scale factor answered, and refused registers are retried every five minutes instead of being dropped until restart.
- No blocking findings.
scale()and the newmetric()helper both handle nil, andcomplete()closes the short-reply case. - Security: no secrets, new dependencies, new network destinations or control-path changes in the driver diff.
- Open, as the description says: no hardware run, and nobody has checked how the apps show a missing MPPT field.
Safe to merge from my read. I read the driver diff and CI is green; I did not run the tests myself.
This branch has not been deployed
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.
Problem
MPPT current and voltage live in SolarEdge's own block past Model 103: scale factors at 40123, string 1 at 40140, string 2 at 40160. Many inverters do not have it. solaredge_pv 1.2.3 started each value at 0 and each scale factor at 0, so:
mppt1_v = 0,mppt1_a = 0and the same for string 2, on every poll, and thepv_mppt*metrics with them; that reads as two strings producing nothing;This breaks the repo's rule that a failed read is nil, never 0. After three misses those registers were also left alone until restart; #298 put only the serial on a five-minute retry.
Change
probe_readthat misses three times is asked again every five minutes, not only the serial. Core keeps a poll fresh when the device refuses one read and others answer, so on a model without the block this costs three refused reads in sixty polls.Test evidence
test_solaredge_pv_mppt_absent.lua(run bytest_solaredge_pv_mppt_absent.py): block refused for six polls; scale factors refused; string 2 refused; block refused three times then answering. 1.2.3 fails:no MPPT block 1: mppt1_v = 0 from a register that did not answer.test_wakes_after_silence.lua(run bytest_solaredge_pv_wakes.py), the shared harness from fix(saj): read the serial and battery again after the inverter wakes (1.3.1) #301: silent start, silent spell mid-session, each register refused six times. 1.2.3 fails:register 40123 was not asked again within five minutes.test_solaredge_serial_retry.luafrom fix(solaredge_pv, solaredge_legacy): keep reading the serial after the inverter wakes (1.2.3, 0.3.4) #298 still passes.make test-driver ID=solaredge_pv: 47 passed, 10 skipped.make absent-register-report: every address settles except the Model 103 block, which emits nothing while it fails.make check: 5576 passed, 927 skipped.Not yet verified
solaredge_legacyandsolaredgeare separate drivers and not changed here.drivers/BUNDLED_SOURCE.jsonhas to move.🤖 Generated with Claude Code