PowerOcean second attempt ;-) #496
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After a long time, I finally took another look to see if I could do it better... Comments are welcome.
If I interpret this correctly, not much has changed at the interface.
26 parameters.
The update of most of them is fine.
The parameters sysGridPwr and sysLoadPwr are not updated or updated very rarely.
Perhaps there are more values in the other variants of the Powerocean. In mine, there are these 26. Or have I not seen everything in the debug yet?
The best solution would be to integrate @foxthefox's work with the non-public API. From my perspective, he solved the work regarding the protobuf stuff excellently. Unfortunately, it was built into ioBroker :(. I find the path too labor-intensive. VM ioBroker to MQTT to Home Assistant.
The only noteable thing:
{"cmdId":1,"cmdFunc":96,"param":{"pcsBPhase":{"vol":234.81839,"amp":0.59838074,"actPwr":-82.01689,"reactPwr":102.87785,"apparentPwr":131.56984},"mpptHeartBeat":[{"mpptPv":[{"vol":49.038315,"amp":0.0,"pwr":0.0},{"vol":39.59751,"amp":8.514693E-4,"pwr":0.033716064}]}],"pcsCPhase":{"vol":236.75612,"amp":0.6567431,"actPwr":-46.289417,"reactPwr":154.15608,"apparentPwr":160.95592},"emsBpAliveNum":2,"pcsAPhase":{"vol":231.96786,"amp":1.1700364,"actPwr":239.71274,"reactPwr":275.88904,"apparentPwr":365.4818}},"addr":"ems"}
{"cmdId":7,"cmdFunc":96,"param":{},"addr":"bp_addr"}
{"cmdId":5,"cmdFunc":241,"param":{},"addr":"ems_edev_sys"}
{"cmdId":8,"cmdFunc":96,"param":{},"addr":"ems_change_report"}
{"cmdId":8,"cmdFunc":96,"param":{"bpSoc":90},"addr":"ems_change_report"}
{"cmdId":11,"cmdFunc":96,"param":{},"addr":"ems_eco_logy_dev"}