Setting CCGX generator conditions using MQTT

I have a CCGX Color Control which controls a diesel generator via relay.

In the CCGX UI, I can go to Settings–>Generator start/stop–>Settings–>Conditions–>Battery SOC–>Start when Battery SOC is lower than 40%.

My question is: can I set these values by publishing a “write” command over MQTT? I can see from the documentation at [dbus · victronenergy/venus Wiki · GitHub] that I can manually start the generator over MQTT by publishing to W/{systemID}/generator/0/ManualStart but I cannot see any way of setting the condition rules over MQTT. Is this possible?

Did you get this working? I have been trying for the last few weeks with no luck. Would you share any results you got to work? Thanks!

No, I was hoping for a response from someone at Victron.

Me too. On a different thread with a little more info, but still not working. I can’t even get mosquitto_pub to work. I can find the Topic in the mosquitto explorer, but can’t change it. Too new to this to understand it clearly. Hope Victron will kick in one day and make this easier and with some support.

got some help from another member. see here, this worked for me.

I already knew how to do a “Manual start” command over mqqt - but my original question was how to update the settings over mqtt, specifically how to update “Settings–>Generator start/stop–>Settings–>Conditions–>Battery SOC–>Start when Battery SOC is lower than xxx”

Ok, trying to get my genstart/stop finalized. Would you mind sharing.

Wouldnt updatimg the other values you mentioned be done the same way you update manual start? If not please elaborate. Maybe we can help each other…

Use this MQTT path (Venus 3.54)

W/your VRM id/settings/0/Settings/Generator1/Soc/StartValue

with the payload changed to the desired values

{
“max”: 100,
“min”: 0,
“value”: 80
}

Many thanks dmsims. Can I ask where you are getting the information about the mqtt path? I have been looking in https://github.com/victronenergy/venus/wiki/dbus but I don’t see this path mentioned there.

I use MQTT explorer

Here is the Victron documnetation

Many thanks dmsims, that’s really helpful

My CCGX is currently on firmware version 3.00 so I think I’ll have to upgrade to use the MQTT explorer.

Yes 3.20 is the minimum

I am running 3.54 without any issues

(just watch the security settings as thing can get a bit more complex!)