Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Deye micro inverter support for MQTT #30

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sicheste
Copy link

@sicheste sicheste commented Mar 10, 2024

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.

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.
@sicheste
Copy link
Author

sicheste commented Mar 10, 2024

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?

@sicheste
Copy link
Author

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).

@nmakel
Copy link
Owner

nmakel commented Mar 10, 2024

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.

@sicheste
Copy link
Author

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?

@nmakel
Copy link
Owner

nmakel commented Mar 11, 2024

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.

@sicheste sicheste force-pushed the add_deyemicro branch 2 times, most recently from 4a43814 to d006d1a Compare April 29, 2024 17:03
@sicheste sicheste marked this pull request as ready for review April 29, 2024 17:08
@sicheste
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants