Patrick Schurig c5c3f46f57 sunspec: arm the storage revert timer after every setpoint
setInOutWRteRvrtTms() existed but was never called. InOutWRte_RvrtTms is
the delay after which the inverter drops the setpoint and resumes its
native behaviour. Left at 0, a setpoint stays active indefinitely, HEMS
stopped, network lost or process crashed included - the battery stays
where the last command put it.

Add a per-thing revertTime parameter, 0..28800 s, defaulting to 0 so the
generic vendor keeps its current behaviour, and route every setpoint
through SunSpecStorageLogic::planSetpoint(). The plan orders the writes -
ChaGriSet, StorCtl_Mod, then the rates - and appends the revert timer
last, so the timer never starts counting against a setpoint that has not
been written yet.

Writes are issued sequentially rather than in parallel: the order is part
of the contract with the hardware.
2026-07-31 10:26:01 +02:00
2026-05-31 11:50:55 +02:00
2026-05-31 11:50:55 +02:00
2026-05-31 11:30:06 +02:00
2026-05-31 11:50:55 +02:00
2026-05-31 11:50:55 +02:00
2026-05-31 11:50:55 +02:00
2026-05-31 11:30:06 +02:00

etm-powersync-plugins-modbus

Description
No description provided
Readme GPL-3.0 7.7 MiB
Languages
CSS 93.6%
C++ 3.3%
HTML 3%