TonyM1958/HA-FoxESS-Modbus

Missing holding registers in range 32000 onwards

Closed this issue · 8 comments

Hi,

It looks like the input registers 11069 to 11092 have corresponding holding registers in the range 32000 to 32023

Thanks - I've added these to the spread sheet. Will do sa scan later to verify and also see if these are the same on KH series if possible.

These don't work on my H1 when accessed via the ethernet port holding registers. They work OK when using RS-485 using the input registers. Looks like they will probably work on KH as values are returned, so that creates a dilema as different profiles are now needed when reading H1 via LAN and KH via RS485.

They work OK on my H1 when accessed over RS485 reading the holding registers. I don't have a lan port to test.

OK, interesting...

That will be the first instance where the set of holding registers available over LAN is different to that available over RS485... Are you sure those holding registers don't work over LAN?

Need to have a poke around and see what's going on. I think I can see the registers when I poll them directly via the LAN port, but it seems HA doesn't see them - not sure why right now. Have not, yet, tried to access holding registers over RS485 instead of input registers. All the input registers seem to work ok.

Ahh - might help if I changed the input_type to holding when copying the sensors from RS-485 to LAN as well... need to go through and check all the sensors are setup correctly.... would be nice if that means I can fold some of the variations between H1 and KH into one file...

Ah phew! Yeah the 3xxxxx registers are always holding, whether they're accessed over lan or RS485.

updated my code to read these registers and also aligned the different connection methods so only one modbus file is now required for LAN and RS485 connections for single phase inverter H1, AC1, AIO and KH series