Open sicheste opened 4 months ago
Work in progress. So far the inverter reports a power of 0 W.
@nmakel what is the smallest set of values which have to be provided? L2 and L3 can be 0 if only one phase is used, right? But do I have to give something for the power factor for example?
Giving fake values for the power worked. Have to wait to get some sun again for testing with real data. Added possibility to give scaling factors. Not needed for the Deye inverters, but had it for testing and might be useful if someone uses it as a template for another meter which has to be scaled (e.g. power is positive in the wrong direction).
Work in progress. So far the inverter reports a power of 0 W.
@nmakel what is the smallest set of values which have to be provided? L2 and L3 can be 0 if only one phase is used, right? But do I have to give something for the power factor for example?
Absolutely, any l2 and l3 can safely be set to 0.
Let me know when you have things working reliably, then I'll be happy to merge.
I have fixed the reconnecting part to MQTT, also at start up. This works now.
But I have still problems with the energy. The power is reported and shown correct. But for the energy the SetApp is always showing 0 Wh. Also in the monitoring it stays at 0.
I am setting energy_active
, l1_energy_active
, export_energy_active
and l1_export_energy_active
to the same value (not pushed so far). What else is needed?
Check this reply for a sample of data which seem to work. Note the energy values which are in kWh.
As for the minimum number of values required, check the sdm120
device. I have not tried it with less.
Ready to be merged now.
Was running for a while without having problems.
Only drawback: During night the Deye inverter is offline and not reachable. So the modbus proxy provides as energy value a 0. The mySolarEdge app uses the current given value for the calculation of the saved CO2 emissions. So during night this value is incorrect. As soon as the inverter is online again, the saved CO2 emission value jumps back to the value before.
Data of Deye micro inverter is fetched by deye-inverter-mqtt and made available via MQTT. The added device script will fetch the data from MQTT and will make it availble for the SE inverter.