Closed flopp999 closed 2 years ago
Are you able to view the data in the SMA GUI? Do you know if the key is correct?
You can find the key by right clicking the value in the SMA GUI and selecting inspect. You will find something like this:
<td class="col-xs-5 col-sm-4 ng-scope" style="text-align: right">
<span id="v6100_00464800" class="ng-binding">233.22 V</span>
</td>
The id of the span
element is the key we need to query the data. In this case 6100_00464800.
Thanks, I can see Total consumption o Sunnyportal and there I checked with Inspect. I didn't think of GUI. I do not find Total consumption in GUI so I guess Sunnyportal is using some kind of math to show to me.
I can get lots of data with your code, very nice tool :)
But I do not get all of the values, some is None. Is this possible to fix? I also have SMA Energy Meter.
I am missing metering_current_consumption, metering_total_consumption