drobtravels / solaredge-local

Information about local API for SolarEdge Inverters
58 stars 12 forks source link

Wrong datatype for Optimizers values? #18

Open dragoshenron opened 5 years ago

dragoshenron commented 5 years ago

Among other values, the optimizers are reporting input voltage (inputV) and input current (inputC), i.e. module voltage/current. This is an example of what I get: optimizer { serialNumber: "21211D16-75" online: true lastReport { year: 2019 month: 10 day: 5 hour: 13 minute: 18 second: 18 } outputV: 48 inputV: 31 inputC: 4 temperature { value: 26 } }

Now, current is shown only as 4(Amps), while on the website is reported 4.4375. Same goes for the voltage of course. Is there something wrong in the visualisation format, e.g. integer vs float?

I've tried to change datatype in the .proto file but it's not working.

Nevertheless, please compare with the last 10lines of this code: Shouldn't they match in terms of datatype?

scheric commented 5 years ago

while on the website is reported 4.4375

Do you mean this website: http://INVERTER-IP/#/commissioning/maintenance/diagnostics/optimizers-status/all I am only seeing those numbers rounded to 0 decimals. My software version: 4.5.41

dragoshenron commented 5 years ago

My software is 4.7.19, but I was referring to the solaredge monitoring portal. It seems that while decimal numbers are sent to solaredge servers, the local API rounds off the values to integer (as @scheric mentioned)

Is this correct?

drobtravels commented 5 years ago

That would be odd. If you want to check the actual data being returned by the API, try using curl with raw decode as outlined in the readme.

On Sat, Oct 5, 2019, 11:31 AM dragoshenron notifications@github.com wrote:

My software is 4.7.19, but I was referring to the solaredge monitoring portal. It seems that while decimal numbers are sent to solaredge servers, the local API rounds off the values to integer (as @scheric https://github.com/scheric mentioned)

Is this correct?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/drobtravels/solaredge-local/issues/18?email_source=notifications&email_token=ABF3ATXHGOC67R6LLDBJZ6TQNCXNLA5CNFSM4I5XOIDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEANU3RA#issuecomment-538660292, or mute the thread https://github.com/notifications/unsubscribe-auth/ABF3ATREFALR2KPWOFOD2Z3QNCXNLANCNFSM4I5XOIDA .

On Sat, Oct 5, 2019, 11:31 AM dragoshenron notifications@github.com wrote:

My software is 4.7.19, but I was referring to the solaredge monitoring portal. It seems that while decimal numbers are sent to solaredge servers, the local API rounds off the values to integer (as @scheric https://github.com/scheric mentioned)

Is this correct?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/drobtravels/solaredge-local/issues/18?email_source=notifications&email_token=ABF3ATXHGOC67R6LLDBJZ6TQNCXNLA5CNFSM4I5XOIDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEANU3RA#issuecomment-538660292, or mute the thread https://github.com/notifications/unsubscribe-auth/ABF3ATREFALR2KPWOFOD2Z3QNCXNLANCNFSM4I5XOIDA .

dragoshenron commented 5 years ago

I agree with you, but also the raw decode returns an integer value :( Do you confirm?

scheric commented 5 years ago

If I go to http://INVERTER_IP/web/v1/maintenance I can download the maintenance file. If I then send that file to https://protogen.marcgravell.com/decode I will see the proto message it looks a bit like the JSON I receive with this code. The values are the same but the names are missing. In this message the input current is also an integer.