Closed poldim closed 3 years ago
Upon some more testing, I see that when I add the integration, it fails on the first data pull, succeeds on the second, fails on the third and everyone thereafter.
So if the time is left to default 60s, and you add the integration at t=0s, then at 60s it comes up with an initial set of values, and then as 120s all of those values become unavailable and never come back as values.
Here is a screen cap of this: https://imgur.com/a/tjU4599
Can you run Wireshark and see if the Modbus requests are failing sporadically? I have been using 15 second updates on my machine without any issue but if the request are not successfully completed I think you will see the results you have. In Wireshark we should see the requests going out and the responses coming back. You could also just let your Modpoll test run for awhile and see if its reliable or not.
Can you run Wireshark and see if the Modbus requests are failing sporadically? I have been using 15 second updates on my machine without any issue but if the request are not successfully completed I think you will see the results you have. In Wireshark we should see the requests going out and the responses coming back. You could also just let your Modpoll test run for awhile and see if its reliable or not.
Thanks for the suggestion. I was successfully getting single responses but after your suggestion, I tried it on a 10-sec interval and they failed after the first one. I did some more digging and set ModbusTCP Poll to a 5000 ms timeout. This solved it and then I check it's working fine.
I'm getting this error and no values get reported (ever). Based on the error, are you expecting 32bit values while 16bit appears to work fine?
My HA runs via docker. I can go into CLI of the HA container and read values over TCP without any issues