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

Pylontech addition failed - V5FrameError: V5 Modbus EXCEPTION: AcknowledgeError #329

Open
AndyNew2 opened this issue Dec 17, 2024 · 3 comments

Comments

@AndyNew2
Copy link

Description

I tried to configure a Pylontech Batterie which is equipped with a Solarman WLAN stick.
I found in the log following error message:
2024-12-17 21:57:42.003 ERROR (MainThread) [homeassistant.config_entries] Config entry 'Pylontech' from integration solarman has an invalid unique_id '400nnnnnnn' of type int when a string is expected, please create a bug report at https://github.com/davidrapan/ha-solarman/issues
2024-12-17 21:57:42.003 ERROR (MainThread) [homeassistant.config_entries] Config entry 'Pylontech' from integration solarman has an invalid unique_id '400nnnnnnn' of type int when a string is expected, please create a bug report at https://github.com/davidrapan/ha-solarman/issues

It seems there is a logic error, because HA expects a string and do not like the serial number, which consist only of numbers. So nnnnnnn had been replaced with my real serial number (don't want to post my full serial number)

At the GUI I see this:
V5 Modbus EXCEPTION: AcknowledgeError

Seems something went completely wrong with this. I have a Sofar Inverter already running and working. This was just the try to add the batterie information to it...

Reproduction Steps

configure Pylontech H2 Force Batterie with regular steps. Not sure if it hurts, because I have already an inverter connected and working. So this would be the second instance of solarman....

Log

2024-12-17 21:57:42.003 ERROR (MainThread) [homeassistant.config_entries] Config entry 'Pylontech' from integration solarman has an invalid unique_id '400......0' of type int when a string is expected, please create a bug report at https://github.com/davidrapan/ha-solarman/issues
2024-12-17 21:57:42.003 ERROR (MainThread) [homeassistant.config_entries] Config entry 'Pylontech' from integration solarman has an invalid unique_id '400......0' of type int when a string is expected, please create a bug report at https://github.com/davidrapan/ha-solarman/issues
2

Version

24.12.16

Home Assistant Version

2024.12.4

@AndyNew2 AndyNew2 added the bug Something isn't working label Dec 17, 2024
@davidrapan
Copy link
Owner

Please try to add device w/ debug log enabled and attach the file.

@AndyNew2
Copy link
Author

Here attached. I replaced the serial numbers (keep first and last digits and replaced the middle part with n, but had been all numbers). Hope that information is no further relevant. You see there are two devices, one works the other starting with 40 fails...
home-assistant_solarman_2024-12-17T21-22-47.195Z.log

@davidrapan davidrapan changed the title integration solarman has an invalid unique_id 'xxx' of type int when a string Pylontech addition failed - V5FrameError: V5 Modbus EXCEPTION: AcknowledgeError Dec 18, 2024
@davidrapan davidrapan removed the bug Something isn't working label Dec 18, 2024
@davidrapan
Copy link
Owner

davidrapan commented Dec 18, 2024

So it's a problem w/ replies from your device as it's returning a modbus exception 0x05.

I would try to strip out the original file of some registers. Particularly those in the 03 ~ 4096 - 4106 | 0x1000 - 0x100A range and try it w/o them.

But I won't be much of a help here as I have zero experience w/ this type of a device... :-/

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

2 participants