Getting Alarms via MQTT or dbus?

Is there a central entity that lists all active alarms of a GX device, or at least the fact that there is a pending alarm?

I know there is a number of Modbus registers/dbus paths for the various alarms of many subsystems, but what I’m looking for is basically a boolean value that lets me turn on a warning light in my home if there is any alarm active, without accessing all those registers/paths (and missing something when things change in newer firmware versions…)

Does the GUI and VRM really scan all those registers and then goes to a lookup table to generate the strings it shows in the alarms/notifications list?

Have you checked whether the alarm relay would be a solution … it can be read out and also written

1 Like

Thanks a lot, this looks like the solution.

For future reference, with VenusOS on a Raspberry, the way to get relays to even show in the GUI is to add

5 out relay_1

to /etc/venus/gpio_list and reboot (This assumes GPIO5 is available on your system).

This is then accessible via Modbus as register 806.

Now, to find a way to trigger an alarm without tripping the breaker for a Grid Lost or freeze my batteries, to test this all…

Hi

on Node Red, you can use the error nodes

The filter is to throw away the 0 case (no error).
The function is to format the message (embedding the error code in my case). For Venus for example:

function getErrorDescription(errorCode) {
    const errorMessages = {
        0: 'No error',
        1: 'No ESS',
        2: 'ESS mode',
        3: 'No matching schedule',
        4: 'SOC low',
        5: 'Battery capacity not configured'
    };

    return errorMessages[errorCode] || 'Unknown error code';
}

msg.topic = "Erreur DESS";
msg.payload = getErrorDescription(msg.payload);

return msg;

I am then pushing this to Home Assistant through MQTT

In your case, if you only care about knowing there is something wrong, then after the filter, it is a matter of publishing a message on MQTT.

Matt

1 Like

That looks interesting, but where does the “Venus System” node come from? I don’t have that in my NodeRed (VenusOS Large 3.51)…

Here are the three nodes configuration (and node name at the top)

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.