solis_modbus
solis_modbus copied to clipboard
Time Synch Not Working
Hi,
My inverter is Solis S5-EH1P5K-L. My datalogger is S2-WL-ST connected via LAN (Device serial number 7A* , Firmware: 10010171). I have blocked the S2-WL-ST from accessing the internet because I want to run everything locally. I've had this integration running for about a week, and I'm able to write to the Solis via Modbus no problem. However, I've noticed extreme time-drift happening which is throwing off the overnight charge windows. The clock on the inverter goes wrong very quickly. It loses about 5 mins every hour.
I believe this integration should set the time on the inverter if it drifts. ? I enabled debug and rebooted and didn't see any attempt to write to the clock read/write registers of 43003-43005. I see no instances of "async_set_value" in the logs either, unless I change something in HA which is then written to the inverter. How frequently should I expect to see solis_modbus correcting the time drift?
Looking at the code, this is the line that I think should be updating the time in clock_drift_test:
await controller.async_write_holding_registers(43003, [current_time.hour, current_time.minute, current_time.second])
43003 is the "Hour" clock register, but is it trying to assign hour, min second to it? Wondering if that's a problem? Let me know if you need any more info.
Thanks, Conor