I´m totally new to ha and trying to realize following:
Modbus read power_readout value of Solar Edge inverter - done, works.
Modbus read power_factor value out of Solard Edge inverter - also done and works.
Now I need to calculate the real power value, with following formula:
power_value = power_readout * {10^ powerfactor }
In the configuration.yaml it looks like that, I get the modbus values power_readout and power_factor, but I don´t get any calculated value in power_value at the end.
Any ideas? Your help is appreciated!
Think my code is right, but my “problem” is the powerfactor coming from SolarEdge inverter. The powerfactor is a num between 0 and -3.
At the moment it is standing at -1 an I can see it in sensor status display:
But the code doesn´t let me calculate with that sensor.
When I put a number instead, it works: