ha-must-inverter
ha-must-inverter copied to clipboard
error reading modbus data at address ******
System Health details
System Information
version | core-2024.1.6 |
---|---|
installation_type | Home Assistant OS |
dev | false |
hassio | true |
docker | true |
user | root |
virtualenv | false |
python_version | 3.11.6 |
os_name | Linux |
os_version | 6.1.71-haos |
arch | x86_64 |
timezone | Africa/Cairo |
config_dir | /config |
Home Assistant Community Store
GitHub API | ok |
---|---|
GitHub Content | ok |
GitHub Web | ok |
GitHub API Calls Remaining | 4994 |
Installed Version | 1.34.0 |
Stage | running |
Available Repositories | 1382 |
Downloaded Repositories | 16 |
Home Assistant Cloud
logged_in | true |
---|---|
subscription_expiration | July 14, 2024 at 3:00 AM |
relayer_connected | true |
relayer_region | us-east-1 |
remote_enabled | true |
remote_connected | true |
alexa_enabled | false |
google_enabled | true |
remote_server | us-east-1-6.ui.nabu.casa |
certificate_status | ready |
instance_id | 087c330f972d4b5894898f6f7cff68ee |
can_reach_cert_server | ok |
can_reach_cloud_auth | ok |
can_reach_cloud | ok |
Home Assistant Supervisor
host_os | Home Assistant OS 11.4 |
---|---|
update_channel | stable |
supervisor_version | supervisor-2023.12.1 |
agent_version | 1.6.0 |
docker_version | 24.0.7 |
disk_total | 468.7 GB |
disk_used | 40.4 GB |
healthy | true |
supported | true |
board | generic-x86-64 |
supervisor_api | ok |
version_api | ok |
installed_addons | Mosquitto broker (6.4.0), Log Viewer (0.17.0), Check Home Assistant configuration (3.11.0), File editor (5.7.0), Z-Wave JS (0.4.3), AirCast (4.2.0), Home Assistant Google Drive Backup (0.112.1), ESPHome (2023.12.9), Advanced SSH & Web Terminal (17.0.5), AdGuard Home (5.0.2), Samba share (12.2.0), DeepStack (2021.09.1), Exadel CompreFace (1.1.0), Filebrowser (2.23.0_12), Portainer (2.19.4-3), Double Take (1.13.11.8), Network UPS Tools (0.13.0), InfluxDB (5.0.0), Frigate (0.13.1) |
Dashboards
dashboards | 1 |
---|---|
resources | 5 |
views | 8 |
mode | storage |
Recorder
oldest_recorder_run | January 24, 2024 at 6:47 AM |
---|---|
current_recorder_run | February 1, 2024 at 11:25 PM |
estimated_db_size | 321.76 MiB |
database_engine | sqlite |
database_version | 3.41.2 |
Sonoff
version | 3.5.4 (a4a8c5f) |
---|---|
cloud_online | 3 / 4 |
local_online | 3 / 3 |
Checklist
- [X] I have enabled debug logging for my installation.
- [X] I have filled out the issue template to the best of my ability.
- [X] This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
- [X] This issue is not a duplicate issue of any previous issues..
Describe the issue
I am always getting the following error after a few minutes of successfully connecting and getting data of the inverter
Logger: custom_components.must_inverter Source: custom_components/must_inverter/init.py:211 Integration: Must Inverter (documentation, issues) First occurred: February 1, 2024 at 11:26:30 PM (8555 occurrences) Last logged: 1:23:45 PM
error reading modbus data at address 20001 error reading modbus data at address 20101 error reading modbus data at address 25201 error reading modbus data at address 15201 error reading modbus data at address 10101 Traceback (most recent call last): File "/config/custom_components/must_inverter/init.py", line 211, in read_modbus_data response = await self._client.read_holding_registers(address=register[0], count=register[1], slave=0x04) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pymodbus/client/mixin.py", line 107, in read_holding_registers return self.execute( ^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pymodbus/client/base.py", line 147, in execute raise ConnectionException(f"Not connected[{self!s}]") pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Not connected[AsyncModbusSerialClient /dev/ttyUSB0:0]
I have used different methods and different adaptors, but getting the same issue When i reload the integration, it fixes it for a few minutes, then stops again so I have to reload the integration again
I have made an automation to automatically reload the integration when getting this error from the log
I have a must PV1800 3k inverter, now connected through the RJ 45 port to a USB to RS485 Converter Adapter then to my HA instance
Reproduction steps
- Successfully connected to the inverter via RS485 and serial 2.After a few minutes, i get the error reading modbus data at address 20001 etc 3.have to reload the integration for it to pull data again from the inverter ...
Debug logs
Logger: custom_components.must_inverter
Source: custom_components/must_inverter/__init__.py:211
Integration: Must Inverter (documentation, issues)
First occurred: February 1, 2024 at 11:26:30 PM (8555 occurrences)
Last logged: 1:23:45 PM
error reading modbus data at address 20001
error reading modbus data at address 20101
error reading modbus data at address 25201
error reading modbus data at address 15201
error reading modbus data at address 10101
Traceback (most recent call last):
File "/config/custom_components/must_inverter/__init__.py", line 211, in read_modbus_data
response = await self._client.read_holding_registers(address=register[0], count=register[1], slave=0x04)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pymodbus/client/mixin.py", line 107, in read_holding_registers
return self.execute(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pymodbus/client/base.py", line 147, in execute
raise ConnectionException(f"Not connected[{self!s}]")
pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Not connected[AsyncModbusSerialClient /dev/ttyUSB0:0]
Diagnostics dump
No response