question

werner567 avatar image
werner567 asked

VRM API - Overall Stats Bug or Intended?

Hi All,


I've been trying to get accurate consumption data from the VRM portal using the https://vrmapi.victronenergy.com/v2/installations/<site-id>/overallstats query.


However if I look at stats for "Today",

The API returns

 "today": {
            "totals": {
                "bs": 2411.940723632184,
                "bv": 1341.206989048789,
                "total_solar_yield": 0,
                "total_consumption": 8.829152643680573,
                "total_genset": 0,
                "grid_history_to": 0,
                "grid_history_from": 10.977277040481567,
                "Pdc": false,
                "iOI1": false
            },
            "percentages": {
                "bs": 64,
                "bv": 36,
                "total_solar_yield": 0,
                "total_consumption": 0,
                "total_genset": 0,
                "grid_history_to": 0,
                "grid_history_from": 0,
                "Pdc": 0,
                "iOI1": 0
            }
        }


VRM portal states a lower usage than the API

  • From Grid: 2.6kWh
  • Consumption: 2.4kWh


1696572860662.png


Now what I found, is that if I select VRM Portal data of the "Last 24 Hours" it seems to match the API call

  • From Grid: 11kWh
  • Consumption: 8.8kWh

1696573020256.png


I've tried doing the same for Month, but I could find any link just yet.


Question?

1. Is this intended to work like this, or is this a timezone issue or possibly a bug?


This makes it very difficult to actually accurately track consumption in the system.


It would be greatly appreciated if assistance on this can be provided.


Thanks in advance

apiportal
1696572860662.png (27.1 KiB)
1696573020256.png (33.5 KiB)
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

0 Answers

Related Resources

Additional resources still need to be added for this topic