Configuring filter for logger service not working

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?

Did you restart ha after editing?

Also the last filter does not match - log says 2 bytes, filter says 4.

Yes. :slight_smile: Several times since it was put in…

Yes, there are two different errors, but the ones above do not work also… :slight_smile:

Does anyone see a problem with my configuration? If not this might be a bug, so I would open an issue…