solaredge-modbus-hass icon indicating copy to clipboard operation
solaredge-modbus-hass copied to clipboard

Add scale factor as attribute (or calcutated phase current or even phase power production)

Open JSdeJong opened this issue 3 years ago • 1 comments

Thanks for the great addon! Now I can stop my node-red implementation, which stopped working once in a while.

I do have a request; Is it possible to add the scale factor as an attribute, or calculate phase current with the scale factor? (What I've seen the phase current is the raw data from the modbus). Or even add the power production per phase

Because I want to store the power usage per phase, I need the power production from the inverter per phase

Thank you very much!

[Edit] Just looked at the code; the code includes scale factor. Need to check why I get other values when the values are very low.

JSdeJong avatar Apr 03 '21 10:04 JSdeJong

It seems the registers spit out the wrong scalefactor for the ac current.

ac_current_phase_scalefactor: 0.01 ac_total_current: 2.17 ac_current_phase_a: 0.56 ac_current_phase_b: 0.83 ac_current_phase_c: 0.77 ac_voltage_phase_scalefactor: 0.1 ac_voltage_phase_a: 230.9 ac_voltage_phase_b: 231.9 ac_voltage_phase_c: 233 ac_power_scalefactor: 0.001 ac_power_output: 20

So current of 0.56 with a voltage of 230.9 will result in 129 Watts; however the ac_power_output is only 20 Watts. But it's not a factor 10 difference; calculating P=U*I for each phase, will result in around 50 Watss instead of the displayed 20.

So it's not going to work what I want. And also it's not an issue caused by the script/custom component but the inverter itself. Or I'm wrong with my thoughts.

Any idea?

JSdeJong avatar Apr 04 '21 18:04 JSdeJong