solaredge_setapp icon indicating copy to clipboard operation
solaredge_setapp copied to clipboard

Takeover message definitions

Open tobylorenz opened this issue 4 years ago • 4 comments

Hi,

I worked through the web-set-app_1_6_9.js.gz and retrieved all contained protobuf definitions. In case you are interested to take them over into your project, they are located here: https://github.com/tobylorenz/solaredge-web-set-app

Bye Tobias

tobylorenz avatar Jan 07 '21 08:01 tobylorenz

Impressive job. Thanks for letting me know.

nmakel avatar Jan 07 '21 20:01 nmakel

Yes, was fun to do. I just gave it an update and also uploaded the development scripts, I'm using.

There is still one issue with a duplicate enum label, which is included in the original web-set-app. The original protoc Javascript compiler complains, when using same enum labels. So I guess, SolarEdge is using a different one.

tobylorenz avatar Jan 11 '21 09:01 tobylorenz

Interesting methodology. I've been referencing the compiled python definitions to derive my own .proto files.

nmakel avatar Jan 11 '21 15:01 nmakel

I first recovered the proto files based on the original web-set-app Javascript. Then to test it, I ran "protoc" to generate new Javascript codes from the proto files. Afterwards I changed the proto files until the original and the generated Javascript matched. ;-)

My home automation and monitoring is based upon MQTT (mosquitto), so the next step for me is to write a program to retrieve the numbers and put them into MQTT. ;-)

tobylorenz avatar Jan 11 '21 17:01 tobylorenz