When you add a modbus:sungrow-inverter thing, is it possible to set the “Maximum number of tries” similar to modbus:poller things? It seems to default to 1 and I am having random timeout issues that I think would go away if I was able to increase the number of tries.
Hey @soenke - is this something you would consider implementing? It’s beyond my skill level, sorry. Would it be difficult?
Hey,
yes this would be possible. I’ve just checked and (can’t explain why) i’ve just used 1 as constant for retries.
So i’ve just created the issue [sungrow] add retries config option · Issue #19181 · openhab/openhab-addons · GitHub for this.
BR
Sönke
Hey,
i’ve just added a configuration option within the sungrow thing.
https://github.com/openhab/openhab-addons/pull/19186
Once it’s merged and released, you have the new option (or you use the version from the PR).
While implementing the PR i’ve remarked one thing:
The retries, you specify in the modbus poller thing and now the sungrow binding is the retry when executing a modbus request, for example reading registers. If you check the configuration of your modbus tcp slave you’ll find an attribute “Maximum Connection Tries” (within advanced options) where you can specify retries that take care if the connection cannot be established. Maybe this helps already.