Can read EnergyReal_WAC_Sum_Produced but cant read EnergyReal_WAC_Sum_Consumed

I have a Fronius Primo 5.0-1 and a Smart Meter 63A-1
Using cURL I can read the produced energy using this comand :

curl http://fronius/solar_api/v1/GetArchiveData.cgi?Scope=System&StartDate=28.8.2024&EndDate=28.8.2024&SeriesType=DailySum&Channel=EnergyReal_WAC_Sum_Produced

Result is a JSON containing

===
{
“Body” :
{
“Data” :
{
“inverter/1” :
{
“Data” :
{
“EnergyReal_WAC_Sum_Produced” :
{
“Unit” : “Wh”,
“Values” :
{
“0” : 25137.055277777763 <<<<<< energy produced that day *********
},

But when I try to read the “consumed” energy (as displayed in the Android App) with

===
curl http://fronius/solar_api/v1/GetArchiveData.cgi?Scope=System&StartDate=28.8.2024&EndDate=28.8.2024&SeriesType=DailySum&Channel=EnergyReal_WAC_Sum_Consumed

… I receive an empty answer

Using python + requests I get an error indicating “Key error” but I dont know what key is in error.

Any ideas ?

Hi,

According to my copy of the Fronius API documentation EnergyReal_WAC_SumConsumed is not available within GetArchiveData.cgi. It is available in other API calls. If you want historic as opposed to live data you will have to calculate it from EnergyReal_WAC_Minus_Absolute and EnergyReal_WAC_Plus_Absolute.

well, according to

https://www.fronius.com/~/downloads/Solar%20Energy/Operating%20Instructions/42,0410,2012.pdf
… page 74 …



… and the (5) indicates …
" introduced in Solar API CompatibilityRange Version 1.5-10 (Datamanager 3.11.1 or Hybridmanager 1.9.1)"

Hi,

It goes to show that having the latest documentation can help :frowning:

I tried variations of the API call against my Symo. I cannot get it to return any data either for EnergyReal_WAC_Sum_Consumed

curl “http://fronius/solar_api/v1/GetArchiveData.cgi?Scope=System&StartDate=28.8.2024&EndDate=28.8.2024&SeriesType=DailySum&Channel=EnergyReal_WAC_Sum_Consumed

OR

curl “http://fronius/solar_api/v1/GetArchiveData.cgi?Scope=System&StartDate=28.8.2024&EndDate=28.8.2024&Channel=EnergyReal_WAC_Sum_Consumed

I have a 63A SmartMeter.

I also tried changing the Scope from ‘System’ to ‘Device’ and specifying a DeviceClass of ‘Meter’. No luck. It could be a quirk of the API or a syntax problem.

Grannos

After further testing I discovered If I try

curl “http://fronius/solar_api/v1/GetArchiveData.cgi?Scope=Device&DeviceClass=Meter&DeviceId=0&StartDate=1.11.2024&EndDate=14.11.2024&Channel=EnergyReal_WAC_Sum_Consumed

It takes quite some time for the ‘reply’ so the query is not being rejected out of hand. Reducing the date range results in a quicker query return but still no data.

I wonder if there is an error in the API implementation.

Grannos

Thanks, mr Grannos, for your patience and help.

My Smart Meter is also as yours :

Smart Meter 63A-1, Feed-in point (Primary meter), SN 21470645

… and Datamanager :

===
DataManager “101” - versio firmware 3.26.1-3 (3.11.1 required)

I dont know where to read

===
Solar API CompatibilityRange Version

… to verify it is 1.5-10 or more …

Well I am trying to contact Fronius.Spain … with no luck by now.

Enjoy. Sebastian.

Here is my latest Bash code

===
#!/bin/bash

hostname=“fronius” # defined in /etc/hosts
endpoint="/solar_api/v1/GetArchiveData.cgi"
punter="?Scope=System"
dataInici="&StartDate=14.11.2024"
dataFinal="&EndDate=14.11.2024"
tipus="&SeriesType=DailySum"
canal1="&Channel=EnergyReal_WAC_Sum_Consumed"
canal2="&Channel=EnergyReal_WAC_Sum_Produced"

my_url=“http://”$hostname$endpoint$punter$dataInici$dataFinal$tipus$canal1

echo $my_url

curl $my_url

===

If I use “canal1” it works OK
If I use “canal2”, there is no answer

Any clues ?

Hi @sebastianet, Sorry, I’ve been out of town and away from the Internet for a week or so.

You can use Fronius’ Solarweb portal to update the firmware of your DataManager card and Inverter if required.

I was unable to extract any data using Channel=EnergyReal_WAC_Sum_Produced from the GetArchive API. I tried lots of combinations of terms but no luck. You can either contact Fronius to confirm that the API call does in fact work with your model inverter OR calculate the value that you want from the other available values that you can get via the GetArchive API.

I have previously contacted Fronius about another API call which didn’t work. After several months they, Fronius, told me that the particular value was not available for my model inverter, despite what the documentation said.

Grannos.