question

bitkid avatar image
bitkid asked

Getting unexpected API results via Note-Red call

Hello... I new to Node-Red but after watching all the tutorials and with some prior programming knowledge, I am getting the hang of it.

I need a little help with VRM API call

I have added VRM API node to Node-Red and trying to pull historical data, but I am getting results that don't match with the values in VRM.... not sure what I am doing wrong, maybe someone can point me on the right path. My final goal is to pull how much kWh were injected to the grid and how many were consumed from the grid in specific timeframe to implement some logic around it... but none of the values makes sense to me.

Example:

VRM values for Yesterday (3/30 00:00 till 3/31 00:00)

1711912016457.png

Node config:

1711912290815.png

Result in Node-Red debug:

1711912253837.png

My consumption in VRM is 6.1 kWh for yesterday. I get 236.32...? as result. What gives?

https://vrm.victronenergy.com/installation/XXXXX/dashboard

Using XXXXX from URL for VRM side id in the API node

1711912410121.png

VRMNode-REDapi
1711912016457.png (264.9 KiB)
1711912253837.png (80.6 KiB)
1711912290815.png (82.9 KiB)
1711912410121.png (12.1 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