Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
gllmlbrt opened this issue Apr 24, 2024 · 1 comment

Comments

@gllmlbrt
Copy link
Contributor

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
Copy link
Contributor Author

Closed, as it seems like a duplicate of the last part of #127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant