Automatic on/off of Multiplus II via command line

Hi everyone,
I need to be able to turn the Multiplus on and off via Cerbo GX’s command line.
I tried to follow the steps documented here: https://www.victronenergy.com/live/open_source:ccgx:commandline?do=export_pdf&rev=1615037933
and especially point 4.4
They say, to switch off a device, one can use:
vreg -c socketcan:can0 -s 0x0200 un32:0x000004 -n 0x24

Ok, I execute it (but with 0x04 as my firmware is newer than this from the document) and the command is accepted. The changes in register 0x0200 are saved and I can see they are changed. But nothing happens to the state of the inverter - it remains On and vice versa - if I write 2 or 3 in an off state - it does not power on.

Am I missing something? Shall I be doing anything else beside changing the values in the register?

The multi is vebus, not CAN. You can write to, via the GX, the relevant modbus register which will toggle the software switch for the inverter.
For MQTT this is
N/cxxxxxxxxxx/vebus/276/Mode
(where 276 is the device ID of the multi)

Thank you Nick!
I also suspected that this “can0” might not work with inverters, but I could not find any other example in Victron docs.
Would you please help me a little bit further by telling me how should I change the structure of the vreg command, to include the parameters you have given “N/cxxxxxxxxxx/vebus/276/Mode” ?
And what should be the “scan/read” commad, to find my Multi’s ID?
If I can read more about these commands with more examples (beside the given document above) would be also great.

I highly appreciate your help!

If you want to run this from the GX have a look at nodered and the venus large image. Super simple.

Okay. So I can’t alter the Multi’s registers without first upgrading the OS to Venus Large, have I got it right?

Isn’t a dbus path available for the Multi’s /Mode variable?
Use the dbus utility for turning the Multi on and off.

See:

and

1 Like

There are different ways to go about it, if you only need a cli then there are utils for that. The large image is just more powerful imo and gives better options, depends what you are trying to do.