Page 1 of 1
How to get access to modbus data (H3)
Posted: Wed Nov 08, 2023 5:57 pm
by m15k
I already saw several plugins for home automation software, but they lack on guidance how to gain modbus data.
Is it possible to obtain modbus data via the wifi dongle somehow? If not what are the possibilities to obtain the data.
Re: How to get access to modbus data (H3)
Posted: Wed Nov 08, 2023 6:02 pm
by calum
https://github.com/nathanmarlor/foxess_ ... ring-Guide
It mentions the H1 but the same integration does also support the H3, albeit not all the same features:
https://github.com/nathanmarlor/foxess_ ... d-Features
(this is because the H3 itself doesn't support them)
Re: How to get access to modbus data (H3)
Posted: Fri Nov 10, 2023 4:10 pm
by m15k
Thanks for the link. I guess I missed the github Wiki.
What should I do when the modbus connection is already blocked by the meter to control the hybrid inverter?
Re: How to get access to modbus data (H3)
Posted: Fri Nov 10, 2023 4:13 pm
by calum
Have a look at
https://github.com/nathanmarlor/foxess_ ... 1-inverter
Basically there is a single connector with multiple pins inside, the meter or CT clamp will be connected to two of those pins, if you want to get access to modbus you need to connect to two others.
Re: How to get access to modbus data (H3)
Posted: Fri Nov 10, 2023 4:48 pm
by m15k
Ah I see. Thanks!
Re: How to get access to modbus data (H3)
Posted: Mon Dec 18, 2023 6:42 pm
by v1lad
Hi All !
I am going to connect adapter with twisted pair cable. Before I started to disassemble H3 connector, would be good to understand how to fix the wire in the socket ? How should the end of the wire be prepared ? Thanks in advance for the help.
P.S. If anyone is interested, I'm going to connect the inverter to an adapter based on an ESP32 controller. The case is printed.
https://www.thingiverse.com/thing:3337686
Re: How to get access to modbus data (H3)
Posted: Tue Dec 19, 2023 10:29 am
by calum
It's small grub screws. I would strip about 6-7mm of insulation and then fold the end over to provide more metal for the screw to grip. Be aware that especially if you're using solid core cable for this, it's pretty easy to break them so be gentle
Re: How to get access to modbus data (H3)
Posted: Fri Jan 12, 2024 7:18 pm
by ashley.hill
v1lad wrote: ↑Mon Dec 18, 2023 6:42 pm
Hi All !
I am going to connect adapter with twisted pair cable. Before I started to disassemble H3 connector, would be good to understand how to fix the wire in the socket ? How should the end of the wire be prepared ? Thanks in advance for the help.
P.S. If anyone is interested, I'm going to connect the inverter to an adapter based on an ESP32 controller. The case is printed.
https://www.thingiverse.com/thing:3337686
Hi,
Did you manage to get this working. I will be attempting the exact same thing tomorrow.
Thanks,
Ash
Re: How to get access to modbus data (H3)
Posted: Sat Jan 13, 2024 8:55 am
by Dave Foster
ashley.hill wrote: ↑Fri Jan 12, 2024 7:18 pm
Hi,
Did you manage to get this working. I will be attempting the exact same thing tomorrow.
Thanks,
Ash
Yes this does work, there are quite a few H3 users using this integration.
Wiring instructions are here (but note that H3 has a different pinout to H1)
https://github.com/nathanmarlor/foxess_ ... ring-Guide
Re: How to get access to modbus data (H3)
Posted: Fri Feb 09, 2024 10:35 am
by v1lad
Hi All !
Modbus error function code: 0x83 exception: 2
It seems that I have a communication via UART, but the response is wrong. What can be the reason for this?
I have made the issue here and attached log and config.
https://github.com/mypi-home/HA-ESPHome ... s/issues/1
P.S. Issue is solved. H3 model has other reg numbers. I found correct list here.
https://github.com/rsaemann/HA-FoxESS-H ... -Registers
RS485 is working.