Skip to content

Require a matching acknowledgement for requested PV responses - #6

Merged
MrCodeLabs merged 1 commit into
mainfrom
fix/pv-response-acknowledgement
Nov 2, 2026
Merged

MrCodeLabs merged 1 commit into
mainfrom
fix/pv-response-acknowledgement

Conversation

@MrCodeLabs

@MrCodeLabs MrCodeLabs commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

When a caller requests a response, use the existing acknowledged write path for set_pv_data and reject missing or mismatched ids replies. Keep the existing response format and send-only calls.

Twenty targeted checks passed, including the real service and HTTP bridge with fake transport; unchanged main reproduces the failure. Regression cases extend existing test files.

Linux CI: 963 blocking tests passed; the same 17 known non-blocking findings as unchanged main remain. Hassfest passed. Test run: https://github.com/MrCodeLabs/ha-goecharger-api2/actions/runs/41516000470

Upstream synchronization #3 is merged. HACS fails only its repository-Issues check on the unchanged fork because Issues are disabled.

@MrCodeLabs
MrCodeLabs merged commit cb93c62 into main Nov 2, 2026
3 of 5 checks passed

Copy link
Copy Markdown
Owner Author

Hallo @marq24, hier haben wir set_pv_data angepasst: Fordert eine Automation eine Antwort an, wird der vorhandene bestätigte Schreibweg verwendet und die passende ids-Antwort geprüft. Eine leere oder abweichende Bestätigung liefert einen Fehler. Ohne angeforderte Antwort bleibt Send-only erhalten; dein Antwortformat bleibt ebenfalls gleich.

So kann eine Automation einen PV-Transfer erst nach echter Bestätigung als erfolgreich verbuchen. Der getrennte Vorschlag im Original ist marq24#188.

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