H3-Pro Modbus Connection Issues #685
Replies: 7 comments 15 replies
|
Hi, it looks like you are on the very latest H3Pro firmware - has it ever worked for you (but a firmware upgrade stopped it), or is this the first time you've been trying to set it up?. Can I just ask what your inverter config is - single battery or dual battery system (since 37609 is a BMS register) If you are on v1.12.1 (or .2) Can you go to Settings, Devices & Services, and click on the > to the side of Foxess - Modbus, then click on 'Enable Debug Logging' Restart your home assistant and let it start up, wait a minute or 2 and then go back to Device again as above but this time click on 'Disable Debug Logging' and it will download the logfile - if you can then copy and paste all Foxess modbus.modbus controller event logs below please. |
|
The integration has never worked fully; I first tried v1.12.1 when the inverter was installed (the latest version at that time) and the initial connection failed with this 'IllegalAddress' issue. I tried an older beta version that successfully connected the controls, but didn't return any sensor information. I then worked my way up to v1.12.0 which is the latest version I can currently use (again, controls working, sensors not). I have a dual-battery installation. From a secondary HA instance I have running with v1.12.2, I get the following debug information: 2024-10-01 15:40:42.215 DEBUG (MainThread) [custom_components.foxess_modbus.modbus_controller] Reading addresses on tcp://192.168.68.222:502 247: (36001, 3) |
|
Ah, we have progress! With Max Read set to 10, the connection appears to be stable and sensor values are flowing correctly. Debug information as below: 2024-10-01 16:05:13.765 DEBUG (MainThread) [custom_components.foxess_modbus.modbus_controller] Reading addresses on tcp://192.168.68.222:502 247: (36001, 3) |
|
Interesting, it's actually your adaptor that couldn't handle the max reads and not an invalid register mapping. The default for that adaptor is 100, and as far as I know we haven't seen a problem before - but the H3 Pro has so many 'extra' registers for its PV strings and second battery we may have just found it's limit. Would you mind trying that again but set the max read to 50 and check the logs - i'm hoping it should cope with that. N.B. There's also a problem being reported by a validatoin fail in 39235,39236 (inverter battery power 2) - i'll take a look at that. |
|
FWIW I had success reading well above 50 registers when I tested my 410s last year. However for the purposes of this integration doing it in one, two or three reads doesn't make much different given each one is completed in few hundred milliseconds! |
|
Whether having looked at the logs in too much detail, this might well be a caused by an unreadable register, which the 100-register read happens to span, but the 50-register read doesn't. If that's the case, the solution is to add that to our range of registers to not read. |

Uh oh!
There was an error while loading. Please reload this page.
Hi all,
I've had an H3-Pro-20 installed and connected via Modbus on a USR-TCP232-410s. Using v1.12.1 and v1.12.2 a connection is initially made, but it times out after a minute or so with the error:
Error reading registers. Type: RegisterType.HOLDING; start: 37609; count: 92; slave: 247 from tcp://192.168.68.222:502: Exception Response(131, 3, IllegalAddress)
I can connect using v1.12.0, but all of the sensors are unavailable. The controls section is however operational. Happy to help fix this if there's anything I can do. My firmware versions are:
H3-Pro-20.0
Master: 1.53
Slave: 1.06
ARM: 1.22
All reactions