question

hummingbear avatar image
hummingbear asked

Overall Stats endpoint on VRM API is not relative to installation timezone

I'm using the overallstats endpoint from the VRM API (exact query below)

https://vrmapi.victronenergy.com/v2/installations/:id/overallstats?type=custom&attributeCodes[]=Pb&attributeCodes[]=Bc&attributeCodes[]=Pc&attributeCodes[]=kwh

It is around 2AM and I can assure you we've had no solar production, yet the `today` stats are returning totals for solar production. I'm assuming it's tied to UTC. Is this intended behavior? I would think it'd be relative to the installation's timezone and it's annoying that I can't set it as such. Is this correct behavior or a bug?


"today": {
            "totals": {
                "Pb": 7.77001953125,
                "Pc": 6.329833984375,
                "Bc": 7.580078125,
                "kwh": 21.679931640625
            },
            "percentages": {
                "Pb": 18,
                "Pc": 15,
                "Bc": 17,
                "kwh": 50
            }
        }



VRMapi
1 comment
2 |3000

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

hummingbear avatar image hummingbear commented ·

@mvader (Victron Energy) can someone chime in here? Aggregate stats for "today" aren't relative to the installation location, which makes these stats a bit useless.


Maybe I'm missing something, but when I query my installation it returns my timezone as `"timezone": "America/Los_Angeles"` which is correct, yet it's 12:14AM and my aggregate state show solar production for "today"

0 Likes 0 ·
0 Answers

Related Resources