core: Modbus stops working after [Invalid Message] No response received, expected at least 2 bytes (0 received)
The problem
Modbus stops working after
2021-07-08 22:37:25 ERROR (SyncWorker_2) [homeassistant.components.modbus.modbus] Pymodbus: Modbus Error: [Input/Output] Modbus Error: [Invalid Message] No response received, expected at least 2 bytes (0 received)
After this all entities configured turn state to unavailable
What is version of Home Assistant Core has the issue?
core-2021.7.1
What was the last working version of Home Assistant Core?
core-2021.6
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Modbus
Link to integration documentation on our website
No response
Example YAML snippet
- name: meterkast
type: rtuovertcp
host: <redacted>
port: 1234
sensors:
- name: meter_main_v
scan_interval: 10
slave: 2
address: 45056
data_type: uint
unit_of_measurement: 'V'
scale: 0.01
precision: 2
- name: meter_main_f
scan_interval: 10
slave: 2
address: 45062
data_type: uint
unit_of_measurement: 'Hz'
scale: 0.01
precision: 2
Anything in the logs that might be useful for us?
2021-07-08 22:37:21 DEBUG (SyncWorker_6) [pymodbus.client.sync] New Transaction state 'SENDING'
2021-07-08 22:37:21 DEBUG (SyncWorker_1) [pymodbus.client.sync] New Transaction state 'SENDING'
2021-07-08 22:37:21 DEBUG (SyncWorker_14) [pymodbus.client.sync] New Transaction state 'SENDING'
2021-07-08 22:37:21 DEBUG (SyncWorker_2) [pymodbus.client.sync] New Transaction state 'SENDING'
2021-07-08 22:37:21 DEBUG (SyncWorker_12) [pymodbus.client.sync] New Transaction state 'SENDING'
2021-07-08 22:37:21 DEBUG (SyncWorker_13) [pymodbus.client.sync] New Transaction state 'SENDING'
2021-07-08 22:37:22 DEBUG (SyncWorker_7) [pymodbus.client.sync] New Transaction state 'SENDING'
2021-07-08 22:37:22 DEBUG (SyncWorker_9) [pymodbus.client.sync] New Transaction state 'SENDING'
2021-07-08 22:37:22 DEBUG (SyncWorker_1) [pymodbus.client.sync] New Transaction state 'SENDING'
2021-07-08 22:37:22 DEBUG (SyncWorker_14) [pymodbus.client.sync] New Transaction state 'SENDING'
2021-07-08 22:37:22 DEBUG (SyncWorker_2) [pymodbus.client.sync] New Transaction state 'SENDING'
2021-07-08 22:37:25 ERROR (SyncWorker_2) [homeassistant.components.modbus.modbus] Pymodbus: Modbus Error: [Input/Output] Modbus Error: [Invalid Message] No response received, expected at least 2 bytes (0 received)
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 21 (10 by maintainers)
In previous versions this did not seem to be a issue at all (including reconnection) also it did not matter 1 hub was down, did something change big time in the pymodbus lib?