You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a set up where I have 33 climate entities via modbus TCP. I have noticed the following:
The entities load perfectly i can see all the values (target/current temp, mode, fan_mode). However If I switch the mode or the fan_mode or the temperature, it would take between 20-50 seconds for the change show up on the physical device.
If I increase the scan_interval for the climate entities to 90 seconds, then it becomes crispier and the write_register actions turn around time from the HA UI will be around 4-6 sec not, ideal but much better.
I took tcpdumps as I was thinking the issue is in the network, but in the traces it is clear that the response time of the modbus server is within 500 ms.
The delay is E2E so from clicking on the GUI till seeing the change on the device.
If I send the write bypassing the HA using mbpoll then the change is instant.
I have enabled pymodbus debug logging, and what I see there is when the Write transaction added it goes to Transaction complete state within 500 ms. This suggests that the slowness is coming from Home Assistant itself, so when I press anything on the UI it goes to some queue, and it goes to the pymodbus later. Could it be because of the 33 entities holding a lot of syncworkers ?
Would it help If I split the entities between more HA instances ?
What version of Home Assistant Core has the issue?
core-2024.1.5
What was the last working version of Home Assistant Core?
Hey there @janiversen, mind taking a look at this issue as it has been labeled with an integration (modbus) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of modbus can trigger bot actions by commenting:
@home-assistant close Closes the issue.
@home-assistant rename Awesome new title Renames the issue.
@home-assistant reopen Reopen the issue.
@home-assistant unassign modbus Removes the current integration label and assignees on the issue, add the integration domain after the command.
@home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
@home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
A faster cpu is not needed for that small amount of data !
Please add a debug log as pr modbus documentation, so we can see what happens, I suspect the setting is written fast to your device, but the verify read only happens at scan interval.
You are using 2024.1.5 please update to newest ha version, as there have been many changes in modbus and we do not solve bugs in old versions.
The problem
I have a set up where I have 33 climate entities via modbus TCP. I have noticed the following:
What version of Home Assistant Core has the issue?
core-2024.1.5
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Modbus
Link to integration documentation on our website
https://www.home-assistant.io/integrations/modbus/
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: