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

[Bug]: Solax working fine, then suddenly unrecognized inverter type - serial number : unknown #849

Open
LnK-Holly opened this issue Apr 7, 2024 · 30 comments
Labels
bug Something isn't working solax

Comments

@LnK-Holly
Copy link

Describe the bug

The plugin was working beautifully, then last week suddenly wouldn't connect with error: unrecognized inverter type - serial number : unknown.

The IP address hasn't changed, the Waveshare adaptor LED changes from green to blue to say connected, but plug in just presents above error and no entities available.

I don't think it happened at any particular update, but can't be sure. I've tried rolling back to previous versions of both HA core and this plug in but neither seem to work either.

No idea what's gone wrong! Any help / guidance very much appreciated.

Integration Version

2024.04.2

Homeassistant core version

2024.4.1

Inverter brand

SolaX

Plugin used

plugin_solax.py

Serial prefix

MPT10T

Inverter firmware versions

Unknown

Connection Method

Ethernet Waveshare Adaptor

Dongle firmware

N/A

Detailed Error Log

This error originated from a custom integration.

Logger: custom_components.solax_modbus.plugin_solax
Source: custom_components/solax_modbus/plugin_solax.py:7215
integration: SolaX Inverter Modbus (documentation, issues)
First occurred: 07:22:32 (2 occurrences)
Last logged: 07:54:20

unrecognized inverter type - serial number : unknown

This error originated from a custom integration.

Logger: custom_components.solax_modbus.plugin_solax
Source: custom_components/solax_modbus/plugin_solax.py:7138
integration: SolaX Inverter Modbus (documentation, issues)
First occurred: 07:22:32 (2 occurrences)
Last logged: 07:54:20

SolaX: cannot find serial number, even not for MIC

This error originated from a custom integration.

Logger: custom_components.solax_modbus.plugin_solax
Source: custom_components/solax_modbus/plugin_solax.py:80
integration: SolaX Inverter Modbus (documentation, issues)
First occurred: 07:22:12 (4 occurrences)
Last logged: 07:54:20

SolaX: reading serial number from address 0x0 failed; other address may succeed
SolaX: reading serial number from address 0x300 failed; other address may succeed

This error originated from a custom integration.

Logger: custom_components.solax_modbus.plugin_solax
Source: custom_components/solax_modbus/plugin_solax.py:68
integration: SolaX Inverter Modbus (documentation, issues)
First occurred: 07:22:12 (4 occurrences)
Last logged: 07:54:20

SolaX: attempt to read serialnumber failed at 0x0 data: None
SolaX: attempt to read serialnumber failed at 0x300 data: None
Traceback (most recent call last):
File "/config/custom_components/solax_modbus/plugin_solax.py", line 68, in async_read_serialnr
inverter_data = await hub.async_read_holding_registers(unit=hub._modbus_addr, address=address, count=7)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/solax_modbus/init.py", line 482, in async_read_holding_registers
resp = await self._client.read_holding_registers(address, count, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pymodbus/client/base.py", line 180, in async_execute
raise ModbusIOException(
pymodbus.exceptions.ModbusIOException: Modbus Error: [Input/Output] ERROR: No response received after 3 retries

Additional context

No response

@LnK-Holly LnK-Holly added bug Something isn't working solax labels Apr 7, 2024
@tsunami-ad
Copy link

I have exactly the same problem.

@LnK-Holly
Copy link
Author

LnK-Holly commented Apr 8, 2024 via email

@tsunami-ad
Copy link

I dont know. Maybe updated another integration. But i restored from backup and its still not working so i'm not sure.

@klubalo
Copy link

klubalo commented Apr 9, 2024

I have seen this issue right after update to 2024.03.7 and triggering remotecontrol (it was instant failure). I had to downgrade to 2024.03.6 as that's last version that works correctly with remotecontrol for me. Maybe some issue with locking? Not sure. I don't have much time to mess with it.

@LnK-Holly
Copy link
Author

Thanks for info @klubalo , unfortunately downgrading to previous versions doesn't seem to fix it for me. Can't for the life of me work out what's gone wrong?!

@jimbaxter
Copy link

I have been having issues like this for the last month after 6 months of stable use with the PocketWifi 3.0

Using independent modbus tools I can still see there is a modbus connection but I need to work out how to use modbus commands and work out if it is working well enough to provide the required data. so I am unsure if the modbus connection has changed?

@vitjurasek
Copy link

The same problem after todays upgrade :-(

@ulldins
Copy link

ulldins commented Apr 15, 2024

I have the same issue, upon reloading or rebooting HA, it then starts to communicate but after a few mins, it stops all of a sudden.

Really stumped currently.

@Trevbil
Copy link

Trevbil commented Apr 16, 2024

Same here. Stopped all of a sudden after upgrade. Downgrading does not help. Mine has progressed to showing “no entities or devices”

@chwari
Copy link

chwari commented Apr 17, 2024

Hello,
it stopped yesterday.
ERROR (MainThread) [custom_components.solax_modbus.plugin_solax] QCELLS: cannot find serial number, even not for MIC
ERROR (MainThread) [custom_components.solax_modbus.plugin_solax] unrecognized inverter type - serial number : unknown

It´s sad cause it´s my favorite integration and the reason I installed HA in the first place. Did someone try to reinstall?

Hopefully there will be a fix...

@ulldins
Copy link

ulldins commented Apr 17, 2024

I managed to resolve my issues. I found the IP address of the modbus was conflicting another device on my network.

I had forgotten I have a wifi range extender which some devices connect to, upon checking that, I found another device with the same IP address.

Having now changed the IP, the problem has resolved.

@LnK-Holly
Copy link
Author

LnK-Holly commented Apr 17, 2024 via email

@Trevbil
Copy link

Trevbil commented Apr 17, 2024

I have a reserved IP and I have checked my network and have not found any other device with the same IP.

@ulldins
Copy link

ulldins commented Apr 17, 2024

Unfortunately IP conflict isn't the issue for me, nothing else has same IP. I can also log in to the Waveshare device settings webpage at the correct IP address. I did try completely removing and reinstalling the plugin, but had the same error. Not sure if this helps unpick it, but on my Waveshare device the connection LED changes from green to blue when I try to reload the plugin, and the Act LED flashes green a few times, then it stops. The connection LED remains blue. @wills106, any ideas??

On Wed, 17 Apr 2024, 13:56 ulldins, @.> wrote: I managed to resolve my issues. I found the IP address of the modbus was conflicting another device on my network. I had forgotten I have a wifi range extender which some devices connect to, upon checking that, I found another device with the same IP address. Having now changed the IP, the problem has resolved. — Reply to this email directly, view it on GitHub <#849 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSPLDICY4NHKZ5GKFJE7ZLY5ZWOPAVCNFSM6AAAAABF3ESPXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRRGE4TSMBTGM . You are receiving this because you authored the thread.Message ID: @.>

Hi, I was also able to get to the login page using the conflicting IP. Seems all ok for me now.

@Trevbil
Copy link

Trevbil commented Apr 17, 2024

Thank you @ulldins!

Although I did not have a duplicated IP like you did. It gave me an idea.

  • I went back to the pocket wifi settings and moved from my reserved IP and created a new static IP. Went to my router settings and reserved that IP as well.
  • Deleted the integration from HACS and rebooted (note I have tried this a lot of times before, I had even restored from a backup without success)
  • Reinstalled SolaX Modbus Integration and restarted Home Assistant
  • Added the integration and voila - up and running and all previous dashboards came alive again.

I reckon others' setups may be different. Perhaps it can help them think of a solution.

@ulldins
Copy link

ulldins commented Apr 17, 2024

Thank you @ulldins!

Although I did not have a duplicated IP like you did. It gave me an idea.

  • I went back to the pocket wifi settings and moved from my reserved IP and created a new static IP. Went to my router settings and reserved that IP as well.
  • Deleted the integration from HACS and rebooted (note I have tried this a lot of times before, I had even restored from a backup without success)
  • Reinstalled SolaX Modbus Integration and restarted Home Assistant
  • Added the integration and voila - up and running and all previous dashboards came alive again.

I reckon others' setups may be different. Perhaps it can help them think of a solution.

Great news although monitor it for up to a few hours, as mine would connect and communicate fine and then stop working again.

@tsunami-ad
Copy link

I've tried it all.. it's still not working for me

@LnK-Holly
Copy link
Author

Yeh, I've just tried all above as well, and hasn't worked for me. I'm still getting same error as original post.

@chwari
Copy link

chwari commented Apr 18, 2024

Same here,
when setting up a new hub and connecting to the new IP I get the message "success" but ther are no devices or entitys shown.

Edit: I did setup a new HA on VM. Only HACS and SolaX. No luck. But I learned how to use VMware Workstation ;-)

@chwari
Copy link

chwari commented Apr 19, 2024

Hallo,
it´s working again!

This ist what I did:
In the state of deep frustration I ordered a Waveshare Industrial Serial Server RS485 to RJ45 Ethernet TCP/IP to Serial Module, a power adapter and 10m Cat 6 cable with RJ45 connector. With this I am going to use the COM Port on the Inverter.

But today I saw the the inverter IP had changed again (I forgot to set it to static when I left it yesterday) and the device appears under its old name "espressif". This had changed when I gave it a different IP yesterday.

So I deleted the old hub in SolaX and added a new with the new IP - again. And this time it worked. The energy dashboard of HA ist not yet working but my own energydashboard works. All entitys and the numbers from the history log are back.

So if you have a AVM router (I have a fritz!box cable) you can try the following:
Got to Homenetwork (Heimnetz)
Network (Netzwerk)
Look up the inverter (in my case "espressif") and click "edit"
Uncheck "static IP" (Diesem Netzwerkgerät immer die gleiche IPv4-Adresse zuweisen) if set.
Scroll down to "reset settings" (Einstellungen zurücksetzen) an click reset
Confirm

Then just wait for the IP adress to change automaticly - maybe overnight. And try again.

Good luck!

Note:
The device was connected via my WiFi mesh-repeater (slave). Now it´s connected directly to the router. Why? No idea and I don´t think that it is possible to change this manually.

Tomorrow I will try to set up the com port with the RS485 to RJ45. Just to see if I can ;-)
Hopefully that connection will be more stable.

And thank you wills106 for this tool.

@djenson2000
Copy link

Unfortunate to see this hasn't been ironed out yet. I'm still on version 2024.02.6 (working) and not updating anything else unless there is a security issue.

I believe i first raised the issue here but wasn't sure if it was specific to my environment.

@Trevbil
Copy link

Trevbil commented Apr 21, 2024

From the comments of those that could sort this out (including me), it seems to be related to an IP/router issue.

If anyone else has sorted the issue, it’ll be great to post how they did it for others.

@LnK-Holly
Copy link
Author

I'm still unable to get this working, which is such a shame. I've restored previous (admittedly partial) backups, uninstalled and reinstalled older versions of this plugin, changed IP address of Modbus device, restarted my router, and still none of it works. Just getting the same error as per my original post.

Anyone have any other ideas?? @wills106 , do you have any thoughts?

@LnK-Holly
Copy link
Author

OK, really embarrassingly I've fixed mine.. 1 of the 2 cables between Waveshare device and inverter had snapped. It was still in place, but not making contact.

Rewiring this has resolved all issues!

Sorry everyone, and thanks for people's suggestions/ help. Hope you guys who haven't fixed yours can find a solution soon!

@wranglatang
Copy link

wranglatang commented Apr 23, 2024

Im also having this problem, just got home and its stopped! been working find all day!

Edit: Got it back up again! Im using a unifi Dream router. i just went to the Solax dongle in the ui and just made it reconnect.

@arnohoff
Copy link

I have the same problem and have not figured out yet what to do... How can I restart the WiFi dongle?

Thanks

@wranglatang
Copy link

I have the same problem and have not figured out yet what to do... How can I restart the WiFi dongle?

Thanks

have you tried just unplugging the dongle and plugging it back in?

@arnohoff
Copy link

Hi there,

I solved it now after apprm. 5h of trying.

What did I do?

  • connect via ip to the Web interface to the converter.
  • search WiFi, select WiFi
  • enter password and save.
  • wait till fritxbox gives me up
  • to to frizbox and freeze the new ip to static
  • to in home assistant and go to modbus, delete old device
  • add new device with me IP
  • all values are back and running!!!

Awesome

@wranglatang
Copy link

I just restarted home assistant after making some changes to things and noticed the issue has occurred again. My Previous fix or reconnecting the device in my UDR has not solved the issue.

@chwari chwari mentioned this issue May 7, 2024
@Birkenw25
Copy link

I have the samme or similar issue. HA forgot the solax. It is connected with wifi dongle. I have tried a lot! But up to know I am unsure about the reason. Restart of Integration, HA and the VM does not help. But the last two times I always disconnected the wifi dongle, waited a few seconds and reconnect it and it worked again. All entities are back again as nothing was happend.
But out of a sudden, it happend again. But again I get it done just by disconnect/reconnect the dongle.
does anybody know, how to automate this bugfix ;-) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working solax
Projects
None yet
Development

No branches or pull requests