question

clasence avatar image

Change Generator start/stop SOC rules with mqtt

I have turned on MQTT on my CCGX and I am able to subscribe and get messages. I want to be able to change the generator start/stop rules which are based on the Battery state of charge. They are current at 50% and 70% but I want to be changing them programmatically depending on forecasts. Does anyone know the topic to publish to so these values could be changed?

GeneratorSOCMQTT
2 |3000 characters needed characters left characters exceeded

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

2 Answers
clasence avatar image
clasence answered ·

All the paths are actually found on the dbus_generator source code here. In my specific case, I wrote to the following paths:

Genset SOC stop value (upper threshold)

"W/{portal_id}/settings/0/Settings/Generator0/Soc/StopValue" with payload {"value": 71.0}

This sets the upper threshold to 71% and the generator stops running when SOC is 71%


Genset SOC start value (lower threshold)

"W/{portal_id}/settings/0/Settings/Generator0/Soc/StartValue" with payload {"value": 50.0}

This sets the lower threshold to 50% and the generator stops running with SOC is 50.0


2 |3000 characters needed characters left characters exceeded

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

sanderson avatar image
sanderson answered ·

@clasence, out of curiosity, are you going to adjust them based on machine-friendly forecasts or manually every once in awhile?

2 |3000 characters needed characters left characters exceeded

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