I have a CCGX which controls a diesel generator via a Victron Multiplus. The CCGX is on my home LAN.
Occasionally, the generator fails to start when the CCGX / Multiplus tries to turn it on. The CCGX then displays a "notification", something like "No AC detected at generator input".
What I want to do is to have another device on the LAN that talks to the CCGX in some way and monitors for this situation. The monitoring device would then be able to take some action (such as send an email, ring a bell, or whatever - but I don't need help with that aspect).
I have already succeeded in communicating with the CCGX using SSH, and also using MQTT. It looks to me as if it would be possible to do what I want using MQTT. I've also been wondering whether MODBUS would be a better way of doing it - it looks to me as if I could get the information I want by reading address 3213 over MODBUS once a minute or so.
My question is: what is the best (ie simplest / most robust) way of doing what I want (ie finding out over the LAN when "no AC detected at generator input" happens). Is the answer MQTT or MODBUS or something else, and has anyone else done this? I am OK programming in Python.