Replies: 3 comments 1 reply
-
Not sure I know the answer to your question, but sensors like power, voltage, current will vary over short intervals, so a low scan rate would potentially make sense for them. Temperatures, SoC, battery cycles, remaining kWh, battery voltage etc. won't be varying that quickly so these could be at 30sec+. |
Beta Was this translation helpful? Give feedback.
-
Thought I might be going mad as it seemed rock solid, so I reverted to the main copy of modbusLAN.yaml from github, and the inverter crashed after a couple of hours with the front panel also unresponsive this time. Full off and back on to get it back up and running. Now running with github scan intervals but modbus delay set to 1 to see how long it stays up with those settings... |
Beta Was this translation helpful? Give feedback.
-
Requests are made under a lock, so there's no way for two requests to be made at the same time. |
Beta Was this translation helpful? Give feedback.
-
I've been having problems with the modbusLAN ethernet port crashing. By a process of trial and error, I now seem to have this working reliably with Manager firmware 1.57.
There was a rumour that scanning the modbus server too often caused problems, so the change I made was to replace all instances of scan_interval in modbusLAN.yaml with !secret scan_interval with an initial setting of 30. I've now reduced this to 5 and it's not crashed on me for more than a week (it crashed randomly within 24 hours using the github file settings).
My (unproven) theory is that all the different scan_intervals might result in multiple timers running in HA to trigger scans and that the different intervals result in some sort of race condition where 2 sensor scans run at the same time, or overlap in some way that crashes the modbus server in the inverter...
Looking through the HA modbus documents, the default scan interval is 15 seconds. I have now removed all of the scan_interval settings in modbusLAN.yaml to see if this has any effect (good or bad!).
So, the question is: why are there so many different scan_interval settings in modbusLAN.yaml? For example, PV1_Voltage and PV1_Current are 30 seconds, but PV1_Power is 5 seconds. Does anyone know how the current values were decided and what the potential impact is of changing them?
Beta Was this translation helpful? Give feedback.
All reactions