Dashboard showing "off" with external control

Hello,

I control my system with my own software via DBus, which works perfectly, except that since the last VenusOS update, the dashboard shows “Off” instead of “Ext. control”, in VRM and in the console. The system is running normally, firmware is up to date:
CerboGX: VenusOS 3.41
MultiPlus: 552

Is there a new parameter I need to set to tell the system that external control is used, or is it a simple display bug?


image

Which is the value from the com.victronenergy.system/SystemState/State ?

For more info and logic, take a look at /opt/victronenergy/dbus-systemcalc-py/delegates/systemstate.py

Thank you for the quick reply!

com.victronenergy.system/SystemState/State is “0”.

I checked the logic in systemcalc:

# VEBUS is available. First check that we are not externally
# controlled.
assistant_id  = self._dbusmonitor.get_value(vebus, '/Hub4/AssistantId')
if assistant_id is not None and self._dbusmonitor.get_value(
    'com.victronenergy.settings', '/Settings/CGwacs/Hub4Mode') == 3:
    return (SystemState.UNKNOWN, flags)

/Hub4/AssistantId is “5”, /Settings/CGwacs/Hub4Mode is “3”, so I assume this always returns UNKNOWN (0x00) if external control is enabled.
Was this changed recently? Is there a way to set the state myself based on what my own controller is doing?

Hi,
Don’t know what was changed as I am a “don’t change it if it works” type of guy.
I am still on a much older version as it’s more light than the latest versions and easier to tweak.
If I were you, I would study it thoroughly and try to understand how it works and then I would modify the scripts to suit my needs. Then stick to what it works.
Sorry that I couldn’t be of more help…

I changed
return (SystemState.UNKNOWN, flags)
to
return (SystemState.EXTERNALCONTROL, flags),
restarted systemcalc and now it displays “External control” again in both dashboards.
Acceptable for my purposes, as long as it no longer says “Off”, which would obviously be wrong.

Maybe they fix it in a future VenusOS update, or I just change it again. Not many people out there who write their own control loop I guess.
Thank you Alex, I really appreciate your help!

1 Like

Hi,

I have the same issue. It looks like Victron messed it up with the ESS value shown in VenusOS. If I switch to external control, I get also “Off” as a status. But even more funny, if I switch to the internal ESS (Optimized w/o Battery Life) I get “External Control” as status :slight_smile: