Skip to content

Nissan: Optionale aktive Batterieabfrage - #4230

Open
wippofax wants to merge 2 commits into
openWB:masterfrom
wippofax:nissan-active-battery-refresh-pr
Open

wippofax wants to merge 2 commits into
openWB:masterfrom
wippofax:nissan-active-battery-refresh-pr

Conversation

@wippofax

Copy link
Copy Markdown
Contributor
  • Ergänzt eine standardmäßig ausgeschaltete aktive Abfrage beim neu erkannten Anstecken und während der Ladung.
  • Jedes erkannte neue Anstecken erlaubt einen Versuch; während der Ladung höchstens stündlich. Ladepausen ohne Abstecken setzen den Abstand nicht zurück.
  • Begrenzt die Statusabfragen und liest bei Fehlern weiterhin gespeicherte Daten mit ihrem tatsächlichen Messzeitpunkt.

Request battery updates once per newly observed plug-in and at most hourly during charging. Bound status polling, tolerate transient status transport failures, and retain passive reads with manufacturer timestamps when refresh fails.

Keep the option disabled by default, use a fresh connection for the single command, and preserve the upstream HTTP response test fixture correction.
CI enables global DEBUG logging, so requests_mock logs synthetic vehicle and action URLs that trigger the privacy assertions. Set only its adapter logger to WARNING in the HTTP fixture; caplog restores the level after each test. Real HTTP and module logging remain covered.
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