veista / nilan

Nilan integration for Home Assistant
Apache License 2.0
45 stars 10 forks source link

Modbus Error: [Connection] Not connected[AsyncModbusTcpClient 192.168.68.122:502] #132

Closed gllmlbrt closed 2 months ago

gllmlbrt commented 2 months ago

The setup does not seem to initialise.

I am using a modbus bridge as provided here: https://github.com/veista/modbus_bridge which has worked like a charm for more than 18 months. Could it be issue that with the recent HA modbus update, I need to update the bridge with a new library or something ?

Here is the log with a few retries logged:

2024-04-24 19:31:36.643 ERROR (MainThread) [homeassistant.components.modbus.modbus] Pymodbus: Nilan: Error: device: 30 address: 1000 -> Modbus Error: [Connection] Not connected[AsyncModbusTcpClient 192.168.68.122:502]
2024-04-24 19:31:36.643 ERROR (MainThread) [custom_components.nilan.device] Could not read get_machine_type
2024-04-24 19:31:36.644 WARNING (MainThread) [homeassistant.components.modbus.modbus] modbus Nilan communication closed
2024-04-24 19:31:36.644 ERROR (MainThread) [custom_components.nilan.device] Register hw_type returned None
2024-04-24 19:31:54.969 ERROR (MainThread) [homeassistant.components.modbus.modbus] Pymodbus: Nilan: Error: device: 30 address: 1000 -> pymodbus returned isError True
2024-04-24 19:31:54.969 ERROR (MainThread) [custom_components.nilan.device] Could not read get_machine_type
2024-04-24 19:31:54.970 WARNING (MainThread) [homeassistant.components.modbus.modbus] modbus Nilan communication closed
2024-04-24 19:31:54.970 ERROR (MainThread) [custom_components.nilan.device] Register hw_type returned None
2024-04-24 19:32:14.430 ERROR (MainThread) [homeassistant.components.modbus.modbus] Pymodbus: Nilan: Error: device: 30 address: 1000 -> Modbus Error: [Input/Output] ERROR: No response received after 3 retries
2024-04-24 19:32:14.430 ERROR (MainThread) [custom_components.nilan.device] Could not read get_machine_type
2024-04-24 19:32:14.430 WARNING (MainThread) [homeassistant.components.modbus.modbus] modbus Nilan communication closed
2024-04-24 19:32:14.431 ERROR (MainThread) [custom_components.nilan.device] Register hw_type returned None
2024-04-24 19:32:34.610 DEBUG (MainThread) [custom_components.nilan.device] Modbus has been setup
2024-04-24 19:32:38.614 ERROR (MainThread) [homeassistant.components.modbus.modbus] Pymodbus: Nilan: Error: device: 30 address: 1000 -> Modbus Error: [Input/Output] ERROR: No response received after 3 retries
2024-04-24 19:32:38.614 ERROR (MainThread) [custom_components.nilan.device] Could not read get_machine_type
2024-04-24 19:32:38.614 DEBUG (MainThread) [custom_components.nilan.device] Device Type = None
2024-04-24 19:32:38.614 WARNING (MainThread) [homeassistant.components.modbus.modbus] modbus Nilan communication closed
2024-04-24 19:32:38.614 ERROR (MainThread) [custom_components.nilan.device] Register hw_type returned None
2024-04-24 19:32:41.348 DEBUG (MainThread) [custom_components.nilan.device] Setup has started
2024-04-24 19:32:51.349 DEBUG (MainThread) [custom_components.nilan.device] Modbus has been setup
2024-04-24 19:32:55.372 ERROR (MainThread) [homeassistant.components.modbus.modbus] Pymodbus: Nilan: Error: device: 30 address: 1000 -> Modbus Error: [Input/Output] ERROR: No response received after 3 retries
2024-04-24 19:32:55.372 ERROR (MainThread) [custom_components.nilan.device] Could not read get_machine_type
2024-04-24 19:32:55.373 DEBUG (MainThread) [custom_components.nilan.device] Device Type = None
2024-04-24 19:32:55.373 WARNING (MainThread) [homeassistant.components.modbus.modbus] modbus Nilan communication closed
2024-04-24 19:32:55.373 ERROR (MainThread) [custom_components.nilan.device] Register hw_type returned None
2024-04-24 19:33:00.850 DEBUG (MainThread) [custom_components.nilan.device] Setup has started
2024-04-24 19:33:10.852 DEBUG (MainThread) [custom_components.nilan.device] Modbus has been setup
2024-04-24 19:33:14.856 ERROR (MainThread) [homeassistant.components.modbus.modbus] Pymodbus: Nilan: Error: device: 30 address: 1000 -> Modbus Error: [Input/Output] ERROR: No response received after 3 retries
2024-04-24 19:33:14.856 ERROR (MainThread) [custom_components.nilan.device] Could not read get_machine_type
2024-04-24 19:33:14.856 DEBUG (MainThread) [custom_components.nilan.device] Device Type = None
2024-04-24 19:33:14.857 WARNING (MainThread) [homeassistant.components.modbus.modbus] modbus Nilan communication closed
2024-04-24 19:33:14.857 ERROR (MainThread) [custom_components.nilan.device] Register hw_type returned None
2024-04-24 19:33:25.097 DEBUG (MainThread) [custom_components.nilan.device] Setup has started
2024-04-24 19:33:35.098 DEBUG (MainThread) [custom_components.nilan.device] Modbus has been setup
2024-04-24 19:33:39.104 ERROR (MainThread) [homeassistant.components.modbus.modbus] Pymodbus: Nilan: Error: device: 30 address: 1000 -> Modbus Error: [Input/Output] ERROR: No response received after 3 retries
2024-04-24 19:33:39.105 ERROR (MainThread) [custom_components.nilan.device] Could not read get_machine_type
2024-04-24 19:33:39.105 DEBUG (MainThread) [custom_components.nilan.device] Device Type = None
2024-04-24 19:33:39.105 WARNING (MainThread) [homeassistant.components.modbus.modbus] modbus Nilan communication closed
2024-04-24 19:33:39.105 ERROR (MainThread) [custom_components.nilan.device] Register hw_type returned None
2024-04-24 19:33:59.281 DEBUG (MainThread) [custom_components.nilan.device] Setup has started
2024-04-24 19:34:09.282 DEBUG (MainThread) [custom_components.nilan.device] Modbus has been setup
2024-04-24 19:34:13.289 ERROR (MainThread) [homeassistant.components.modbus.modbus] Pymodbus: Nilan: Error: device: 30 address: 1000 -> Modbus Error: [Input/Output] ERROR: No response received after 3 retries
2024-04-24 19:34:13.289 ERROR (MainThread) [custom_components.nilan.device] Could not read get_machine_type
2024-04-24 19:34:13.290 DEBUG (MainThread) [custom_components.nilan.device] Device Type = None
2024-04-24 19:34:13.290 WARNING (MainThread) [homeassistant.components.modbus.modbus] modbus Nilan communication closed
2024-04-24 19:34:13.290 ERROR (MainThread) [custom_components.nilan.device] Register hw_type returned None
2024-04-24 19:34:53.359 DEBUG (MainThread) [custom_components.nilan.device] Setup has started
2024-04-24 19:35:03.361 DEBUG (MainThread) [custom_components.nilan.device] Modbus has been setup
2024-04-24 19:35:07.366 ERROR (MainThread) [homeassistant.components.modbus.modbus] Pymodbus: Nilan: Error: device: 30 address: 1000 -> Modbus Error: [Input/Output] ERROR: No response received after 3 retries
2024-04-24 19:35:07.366 ERROR (MainThread) [custom_components.nilan.device] Could not read get_machine_type
2024-04-24 19:35:07.366 DEBUG (MainThread) [custom_components.nilan.device] Device Type = None
2024-04-24 19:35:07.367 WARNING (MainThread) [homeassistant.components.modbus.modbus] modbus Nilan communication closed
2024-04-24 19:35:07.367 ERROR (MainThread) [custom_components.nilan.device] Register hw_type returned None
gllmlbrt commented 2 months ago

Closed, as it seems like a duplicate of the last part of https://github.com/veista/nilan/issues/127