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