I am getting a lot of these messages as my Wallbox is on Wifi and seems to not respond to Modbus requests sometimes:
2022-07-14 06:07:24 ERROR (SyncWorker_7) [pymodbus.client.sync] Connection to (192.168.23.34, 502) failed: [Errno 113] Host is unreachable
2022-07-14 06:09:44 ERROR (SyncWorker_1) [pymodbus.client.sync] Connection to (192.168.23.34, 502) failed: timed out
2022-07-14 06:09:47 ERROR (SyncWorker_1) [homeassistant.components.modbus.modbus] Pymodbus: goe1: Modbus Error: [Connection] ModbusTcpClient(192.168.23.34:502)
2022-07-14 08:47:57 ERROR (MainThread) [homeassistant.components.modbus.base_platform] Received 2 bytes, unpack error unpack requires a buffer of 4 bytes
I put this in configuration.yaml
:
logger:
default: warn
logs:
homeassistant.components.bluetooth_tracker.device_tracker: fatal
filters:
pymodbus.client.sync:
- "Connection to (192.168.23.34, 502) failed: timed out"
- "Connection to (192.168.23.34, 502) failed: [Errno 113] Host is unreachable"
homeassistant.components.modbus.modbus:
- "[Connection] ModbusTcpClient(192.168.23.34:502)"
homeassistant.components.modbus.base_platform:
- "Received 4 bytes, unpack error unpack requires a buffer of 2 bytes"
This does not have any effect on the logs. I have configured other filters in a similar way that seem to work. I don’t see any difference?