-
Notifications
You must be signed in to change notification settings - Fork 4
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
error reading modbus data at address ****** #8
Comments
@omarmeleis did you change any of the default connection settings? I also have the PV1800 and noticed that the serial interface dies when too many commands are being sent in a short period of time. The default settings work fine for my inverter. Try increasing the |
I must say that this is one of the best ways i have found to pull data from the must inverter,,,,, so Cheers for your amazing work :D No i have not changed anything in the default connection settings,,, moreover, I have disabled most of the entities and enabled only around 10 Any recommendations regarding the values of the connection settings,,, increase by how much ?? |
Try setting the Delay to 1.0 and the Max Delay to 1.5, also increase the Timeout to something like 5 so the increased delay won't trigger it. |
@omarmeleis I released a new version that tries to reconnect between reads. Let me know if this works better for you. This version will possibly break your existing configuration and you'll need to reconfigure. I'm still learning how HA custom integrations work 😬 |
Thank u for the amazing work and effort.... |
I have tried the new version, but it still has the same error, but some times gives me a different one when reloading the integration Logger: homeassistant.components.sensor Error adding entities for domain sensor with platform must_inverter ogger: homeassistant.components.binary_sensor Error adding entities for domain binary_sensor with platform must_inverter |
Also getting this error This error originated from a custom integration. Logger: py.warnings /config/custom_components/must_inverter/init.py:228: RuntimeWarning: coroutine 'MustInverter._check_and_reopen' was never awaited if not self._check_and_reopen(): |
I have the same issue, and thanks for the amazing work you have done :) |
Good day |
@muhrin0102 Mine comes with a built-in USB port (that's just a USB to serial converter internally), I've used this port for some time. After a while, I bought a serial to wifi module on AliExpress so I could move my server away from the inverter and it worked nicely. This is the one I bought, it's din rail mounted and there's both an AC and DC version but there's also a cheaper alternative, from what I've searched both use the same board |
mukaschultze |
@muhrin0102 can you create a new issue and paste your debug logs there? I suspect there is information about the multi-phase setup in the Modbus data but mine doesn't have this feature so I'm not sure how it's presented. |
Hello. |
same issue |
It looks like some kind of leak. In my case HA stops communicating with inverter (PH1800) after 2 ~ 3 hours with errors As a temporary solution I have setup scheduled restart of MUST integration, every 2 hours. PS. |
May be related |
After updating to HA 2024.7.2 and thus to pymodbus 3.6.9 my Modbus integration is finally working again. |
System Health details
System Information
Home Assistant Community Store
Home Assistant Cloud
Home Assistant Supervisor
Dashboards
Recorder
Sonoff
Checklist
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
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
Diagnostics dump
No response
The text was updated successfully, but these errors were encountered: