Hi,
I wanted to post my solution to a specific use case some friends and I had, in the hope others may find it useful. If you want to improve upon it feel free to do a PR from Github.
In short I wrote a Shelly script that interrogates the VRM for the battery SoC and activates the Shelly relay 1 based on the SoC.
We use this to activate an immersion element, but could be used to drive any load based on SoC.
You can set the SoC on and off limits (user definable)
You can set the VRM SoC interrogation frequency.
It will install a schedule start and stop for the script (user definable and selectable).
In the event the VRM is not contactable the script turns off the Shelly relay to prevent battery floor discharge.
You will need access to your Victron VRM.
You will need to generate a VRM Access Token.
Hope it helps others. If you make improvements, please share back.
There is a source and minified version (about 30-40% smaller).
To access the code: GitHub - ds4a/shelly-vrm-battsoc: A shelly script to obtain Victron VRM battery SoC and switch a relay on the 1PM
The script is as is.