Open jschmitz-de opened 1 month ago
Hi, thanks for this.
Could you do a couple of test please by reading the registers directly.
To do that in home assistant, go to Developer Tools, and select 'Actions' (or Services as it used to be called).
In the 'action' box start typing Foxess - Modbus and select 'Foxess - Modbus: Read registers'
Choose your inverter in the 'inverter' drop down field
Set the start address to 38846, the count to 2, the type to holding - and click on' perform action' as this -
If you could screen shot the response and paste it below please.
Then could you set the start address to 39139, the count to 1, the type to holding - and click on' perform action'
Again if you could screen shot the response and paste below please.
Yes - no Problem:
Register38846 +1
Register 39139:
PS: it is the same result for "holding" instead of "input" as i choose :-)
Ok, thanks.
The latest modbus spec confirms that 39139 is the actual grid voltage register, whereas 38846 is the meter1/ct frequency - admittedly the latest spec is incorrect in that it says the 38846 (i32) register is a 100 scale but it should be reading 39139 instead which scales correctly at 0.01
There are likely to be a few changes being made over the next few week so it would be good if you could change line 1210 from this ModbusAddressesSpec(holding=[38847, 38846], models=Inv.H3_PRO)
to this ModbusAddressesSpec(holding=[39139], models=Inv.H3_PRO)
And restart your home assistant, it should then be reporting grid frequency correctly - if you can confirm that i'll do a PR for it, but as I say it might be a few weeks before it makes a formal release.
The values that they're getting for the frequency do look correct (albeit 10x too large).
I'll check the spec I have for the H3 Pro when I can, see where that register and scale actually came from. This might have been broken in a recent firmware update or something, as I'm sure it would have been caught when we were first putting in H3-Pro support.
Hi @FozzieUK i changed the line - works like expected. Thanks for that fast reply.
kr joerg
Mitigated
@canton7 it looks like the original testing may have found the meter1/ct frequency registers when testing and not the actual grid frequency register which looking at the latest modbus spec received yesterday is of the right scale (albeit the 38846, 38847 are also shown as 100 scale when in fact they are 1000). Let me know when you've had chance to review, happy to do the PR to update if it helps.
Reopening, as we still need to fix this in the integration!
Hi, i have a FoxEss H3 Pro 15kW and use Homeassist and your Plugin since the PV was installed in August. Everything (that I can overview) works great - thanks 4 that!
When i look into the entity_descriptions.py the scale for all intverters is set to scale=0.01 (Line 1217)
In the ModBus description the gain (for H3 Pro) is given with 100 - but this seams to be wrong.
So it is possible to change the scale to 0.001 whitch results with correct frequence - but this is only a mitigation.
I don´t know how to "case" the scale and will be grateful if this could be implemented.
Version of the custom_component
Used Version 1.12.2
Configuration
no special config
Describe the bug
I got an error on the Log that the rFreq Value got a Range Error