AdapterRequests icon indicating copy to clipboard operation
AdapterRequests copied to clipboard

Adapter for Victron VRM portal

Open gidhap opened this issue 5 years ago • 26 comments

Although several registers of the Victron PV inverters are accessible via Modbus, it is difficult to calculate energy consumption and generation. Victron provides a nice portal (the VRM portal ) where all relevant data and statistics are available. I'd love to be able to include this data into my ioBroker setup. Good thing is... there is an API provided by Victron. even as a PDF Unfortunately I have no clue about coding...

Hope to get some thumbs up for this one

gidhap avatar Mar 26 '20 13:03 gidhap

@Apollon77 I could give you access to my VRM portal, so you don't need hardware, hope this helps :)

gidhap avatar Mar 27 '20 10:03 gidhap

Thank you and the developer that finds this issue would be happy to also get that offen ;-) It most likely will not be me because I have too many other duties on my plate :-)

Apollon77 avatar Mar 27 '20 14:03 Apollon77

worth a try ;o)

gidhap avatar Mar 27 '20 15:03 gidhap

Also interested!

mbad82 avatar Mar 30 '20 12:03 mbad82

would also be interested. greetings Jörg

weigejer avatar Apr 01 '20 10:04 weigejer

would also be interested

elkja avatar Apr 05 '20 07:04 elkja

I think I might be able to help out here. Can someone mail me login-data for the account? mail-user is notmyham, I am using gmail.

SimonBard avatar Apr 29 '20 19:04 SimonBard

@SimonBard I sent you an e-mail :)

gidhap avatar Apr 30 '20 09:04 gidhap

any update here my friends?

rbagia avatar May 12 '21 06:05 rbagia

no news so far on my side, else than I replaced my Victron stuff recently.

gidhap avatar May 12 '21 07:05 gidhap

i´ve been interrestet

blaumsass avatar Jun 15 '22 09:06 blaumsass

i´ve been interrestet

Eyergeorges avatar Jan 04 '23 16:01 Eyergeorges

For all "me too" poster ... if you do not vote in the initial post here with a thumbs up NOONE will see it ... and please do that and no "Me too" posts. Thank you

Apollon77 avatar Jan 04 '23 16:01 Apollon77

For information: At the moment I develop an adapter for Victron Energy devices 😎

derAlff avatar Mar 04 '23 21:03 derAlff

@derAlff Thanks for the info and especially for your effort and spending your time. Please post the link to the repository as soon as you have committed some usaeable code.

mcm1957 avatar Mar 04 '23 22:03 mcm1957

Hey ho, no problem. I need my Energy Storage in my ioBroker... so I can spend the code 👌

At the moment I'm in the testing phase. Is this solved, I commit the code to GitHub and post the link here and in the forum too 👍

derAlff avatar Mar 04 '23 22:03 derAlff

Dear all,

I have created an adapter. Now, can you tell me your preferred values you want?

For test respectively at the moment I read the following values:

  1. Mode (Grid, Shore,...)
  2. Consumption on L1, L2, L3 (voltage, amperes and watts)
  3. Grid usage on L1, L2, L3 (voltage, amperes and watts)
  4. Inverter production on L1, L2, L3 (voltage, amperes and watts)

derAlff avatar Mar 11 '23 08:03 derAlff

Hey ho, here is the Link to the repo. Please test it ;)

https://github.com/derAlff/ioBroker.ve

derAlff avatar Mar 11 '23 22:03 derAlff

Is "ve" as name really the best choice?

Apollon77 avatar Mar 11 '23 22:03 Apollon77

No, not the best. But I am talking with Victron Energy for usage of name and logo the last days. If that is not clear I use "ve" as name 😅

derAlff avatar Mar 11 '23 23:03 derAlff

to set some values over Iobroker whpuld be fine , example i use also the Charger so i can set the cahrcing to 8 instead 16... To read the voltage about the batteries whould also be fine and many more values thanks in advance

HolgerCR avatar Apr 13 '23 18:04 HolgerCR

Is noticed 👍 Thank you for your feedback 👌

derAlff avatar Apr 13 '23 20:04 derAlff

@derAlff IIUC, you are using the modbus interface. The request here was for using the VRM API though. The VRM API has one very large plus over the modbus interface: It allows reading forecast data.

curl --request GET --url "https://vrmapi.victronenergy.com/v2/installations/<VRM_portal_ID>/stats?type=custom&attributeCodes[]=vrm_pv_inverter_yield_fc&interval=hours&start=<unix_timestamp_now>&end=<unix_timestamp_later>" --header 'Content-Type: application/json' --header 'x-authorization: Bearer <token_from_login>'

where VRM_portal_ID is the token number (usually 6 digits, I guess) that is also part of the URL when you are logged in via a browser) and <token_from_login> is what you get when you send a login request. The request here asks for the predicted inverter yield (if you have a PV inverter connected to the GX device via modbus / sunspec), vrm_pv_charger_yield_fc would return the predicted yield from an MPPT.

incase avatar Sep 01 '23 11:09 incase

@derAlff IIUC, you are using the modbus interface. The request here was for using the VRM API though. The VRM API has one very large plus over the modbus interface: It allows reading forecast data.

curl --request GET --url "https://vrmapi.victronenergy.com/v2/installations/<VRM_portal_ID>/stats?type=custom&attributeCodes[]=vrm_pv_inverter_yield_fc&interval=hours&start=<unix_timestamp_now>&end=<unix_timestamp_later>" --header 'Content-Type: application/json' --header 'x-authorization: Bearer <token_from_login>'

where VRM_portal_ID is the token number (usually 6 digits, I guess) that is also part of the URL when you are logged in via a browser) and <token_from_login> is what you get when you send a login request. The request here asks for the predicted inverter yield (if you have a PV inverter connected to the GX device via modbus / sunspec), vrm_pv_charger_yield_fc would return the predicted yield from an MPPT.

Parallel I create an adapter for using VRM. But this adapter is not ready for tests. Please wait for release.

derAlff avatar Sep 01 '23 11:09 derAlff