Repository navigation
E3DC: aktive Speichersteuerung über RSCP - #4152
Conversation
3cf6429 to
aa1604a
Compare
Reviewer's GuideSchema and migrationsBump the datastore version and backfill the three optional RSCP credential fields for existing E3DC battery configurations.
Data structuresAdd optional portal credentials and the local RSCP key to the E3DC battery configuration structure.
Uses of the APIPass device configuration to E3DC batteries and connect the battery setpoint interface to the RSCP controller only when credentials are configured.
ImplementationImplement lazy local RSCP connection reuse and map battery setpoints to E3DC automatic, idle, discharge, and charge requests.
ConfigurationPin the RSCP client and its dependencies to versions compatible with Python 3.9.
TestsTest credential-dependent controllability, setpoint forwarding, and reuse of the RSCP controller.
Test RSCP mode/value translation and lazy connection reuse.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
UI: openWB/openwb-ui-settings#1135
Aktive Speichersteuerung für E3DC per RSCP (SET_POWER Mode+Value), zusätzlich zum bestehenden Modbus-Lesepfad. Optionale portal_username/portal_password/rscp_key-Config – ohne sie wird der Speicher weiterhin normal ausgelesen, ist aber nicht steuerbar. Mode/Value-Semantik und RSCP-Tags an echter Hardware verifiziert in #3450
Neu hinzugekommene Abhängigkeiten: pye3dc, py3rijndael, tzlocal, websocket-client.
Achtung Python 3.9: die neueste pye3dc-Version (0.10.0) sowie deren neueste eigene Abhängigkeiten (tzlocal, websocket-client) benötigen Python ≥3.10, was mit openWBs Python 3.9 nicht funktioniert. Deshalb auf die jeweils neuesten noch 3.9-kompatiblen Versionen gepinnt (pye3dc==0.9.3, tzlocal==5.3.1, websocket-client==1.9.0), API ist identisch.
Test an echter E3DC-Hardware war mir nicht möglich
Summary by Sourcery
Add optional RSCP-based active power control for E3DC batteries alongside existing Modbus monitoring.
New Features:
Enhancements:
Build:
Tests: