@lsgv i ran out of messages seems
I apologize for any confusion; I’ve just edited the post to enhance its clarity.
it was a typo like your “Once you get is sorted”
I used ChatGPT to organize the API requests (curl prompts) and interpret the results in order to create sensor code for Home Assistant. Additionally, it helped me identify and sort the different variables provided in the API response.
I realize that I may need to improve my understanding of MQTT technology, so I plan to study it further.
Currently, my setup includes VenusOS running on a Raspberry Pi Zero W installed in my van, which is connected to an MPPT charger. This allows me to log data and send it to the cloud. VenusOS is connected to the internet via a local Wi-Fi network provided by a USB LTE modem. I could potentially connect Venus to a VPN and utilize either Modbus or MQTT. I’ve experimented with Modbus locally for a short period.
here follow an example of API request and response
curl --request GET \
--url 'https://vrmapi.victronenergy.com/v2/installations/XXXXXX/stats?type=venus' \
--header 'Content-Type: application/json' \
--header 'x-authorization: Token xxxxxxxxx'
{
"success": true,
"records": {
"Pdc": [
[
1730205972000,
59.60095029448269
],
[
1730209572000,
36.343699740467486
],
[
1730213172000,
7.898400218510152
],
[
1730216772000,
0.17290158924804586
],
[
1730220372000,
-0.48191678569713836
],
[
1730223972000,
-0.39405010081529995
],
[
1730227572000,
-0.41556676441034146
],
[
1730231172000,
-0.30578339365919494
],
[
1730234772000,
-0.43650007394949325
],
[
1730238372000,
-0.4360333640307201
],
[
1730241972000,
-0.3267167019963283
],
[
1730245572000,
-0.28301665526529335
],
[
1730249172000,
-0.45676664649843324
],
[
1730252772000,
-0.5436333062072466
],
[
1730256372000,
-0.3259999796152
],
[
1730259972000,
-0.5649666290501633
],
[
1730263572000,
-0.390899970279145
],
[
1730267172000,
0.2349999788012672
],
[
1730270772000,
8.95040004338428
],
[
1730274372000,
24.769866814174236
],
[
1730277972000,
46.68718345928589
],
[
1730281572000,
59.96340027594672
],
[
1730285172000,
63.51836813388071
],
[
1730288772000,
77.94925160111977
]
],
"tsT": [
[
1730205972000,
37.491666666666625,
36.5,
38.6
],
[
1730209572000,
37.80333333333329,
37,
38.6
],
[
1730213172000,
38.064999999999955,
37,
38.6
],
[
1730216772000,
37.311475409836056,
36.5,
38.1
],
[
1730220372000,
36.16500000000004,
35.4,
37.6
],
[
1730223972000,
34.81000000000001,
34.3,
35.9
],
[
1730227572000,
33.675000000000004,
32.7,
34.9
],
[
1730231172000,
32.61833333333337,
32.2,
33.8
],
[
1730234772000,
31.894999999999985,
31.1,
32.7
],
[
1730238372000,
31.256666666666636,
30.6,
32.2
],
[
1730241972000,
30.724999999999984,
30,
31.6
],
[
1730245572000,
30.336666666666662,
29.5,
31.1
],
[
1730249172000,
29.65333333333334,
28.9,
30.6
],
[
1730252772000,
29.388333333333343,
28.9,
30
],
[
1730256372000,
29.110000000000024,
27.9,
30
],
[
1730259972000,
28.956666666666692,
27.9,
30
],
[
1730263572000,
28.61833333333336,
27.9,
29.5
],
[
1730267172000,
28.490163934426256,
27.9,
28.9
],
[
1730270772000,
28.466666666666693,
27.9,
28.9
],
[
1730274372000,
29.285000000000007,
28.9,
30
],
[
1730277972000,
30.563333333333297,
29.5,
31.6
],
[
1730281572000,
32.37333333333336,
31.1,
33.8
],
[
1730285172000,
34.08833333333333,
32.7,
35.4
],
[
1730288772000,
35.99666666666667,
34.9,
37
]
],
"ac_loads": false,
"consumption": false,
"consumption_input": false,
"consumption_output": false,
"solar_yield": [
[
1730205972000,
59.60095029448269
],
[
1730209572000,
36.343699740467486
],
[
1730213172000,
7.898400218510152
],
[
1730216772000,
0.17290158924804586
],
[
1730220372000,
-0.48191678569713836
],
[
1730223972000,
-0.39405010081529995
],
[
1730227572000,
-0.41556676441034146
],
[
1730231172000,
-0.30578339365919494
],
[
1730234772000,
-0.43650007394949325
],
[
1730238372000,
-0.4360333640307201
],
[
1730241972000,
-0.3267167019963283
],
[
1730245572000,
-0.28301665526529335
],
[
1730249172000,
-0.45676664649843324
],
[
1730252772000,
-0.5436333062072466
],
[
1730256372000,
-0.3259999796152
],
[
1730259972000,
-0.5649666290501633
],
[
1730263572000,
-0.390899970279145
],
[
1730267172000,
0.2349999788012672
],
[
1730270772000,
8.95040004338428
],
[
1730274372000,
24.769866814174236
],
[
1730277972000,
46.68718345928589
],
[
1730281572000,
59.96340027594672
],
[
1730285172000,
63.51836813388071
],
[
1730288772000,
77.94925160111977
]
],
"hub_inverter": false,
"from_to_grid": false,
"ac_in": false,
"ac_out": false,
"ac_genset": false,
"total_solar_yield": [
[
1730205972000,
0.05999755859375
],
[
1730209572000,
0.029998779296875
],
[
1730213172000,
0.009979248046875
],
[
1730270772000,
0.010009765625
],
[
1730274372000,
0.029998779296875
],
[
1730277972000,
0.050018310546875
],
[
1730281572000,
0.069976806640625
],
[
1730285172000,
0.05999755859375
],
[
1730288772000,
0.05999755859375
]
],
"bs": false,
"dc": false,
"evp": false
},
"totals": {
"Pdc": 380.7275717778273,
"tsT": 777.1433060109289,
"ac_loads": 0,
"consumption": 0,
"consumption_input": 0,
"consumption_output": 0,
"solar_yield": 380.7275717778273,
"hub_inverter": 0,
"from_to_grid": 0,
"ac_in": 0,
"ac_out": 0,
"ac_genset": 0,
"total_solar_yield": 0.379974365234375,
"bs": false,
"dc": false,
"evp": false
}
}