question

jchowdhury avatar image
jchowdhury asked

Cerbo GX relay control command via API

Hello..

I have installed many Victron products in our test house including Multiplus II, LiFePO4, solar MMPT, and Cerbo GX. I am wondering if I can control Cerbo GX relays with commands using VRM API? I am planning to use Matlab for this purpose. Any thoughts about it? many thanks

cerbo gxVRMapi
1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

sesshoumaru avatar image sesshoumaru commented ·

I am not aware of any commands or possibilities on the UI, but both relais of the CerboGX have the possiblity to get their state read or written via modbus.

modbus.png

0 Likes 0 ·
modbus.png (30.3 KiB)
1 Answer
shaneyake avatar image
shaneyake answered ·

You can control the relays remotely via vrm but it will have to be through mqtt.


Here is a good place to start.

Https: //github. Com/victronenergy/dbus-mqtt

"connecting to the victron mqtt server"

describes how to connect to the vrm mqtt broker, you can use those details to get matlab to connect to vrm.

If the gx is local to your machine running mathlab it is much easier and you could use modbus.

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.