Been down this rabbit hole recently with my garden office setup and figured others might be wrestling with the same thing.
Got an EasySolar II running the office and I want to use Node-RED to directly toggle Relay 0 and the open collector (K1) based on my own logic — things like switching a small immersion when the batteries hit a certain SOC, rather than faffing about with VEConf every time I want to tweak thresholds.
The Venus OS side of things is fairly well documented for reading data, but actually writing to the relays via MQTT feels murkier. From what I've pieced together:
- Relay 0 maps to
com.victronenergy.systemon the D-Bus - You write to it via the MQTT
W/prefix rather thanR/ - K1 (open collector) is a separate path entirely
Anyone actually got this working reliably in Node-RED? Specifically curious whether there's a timing/race condition issue if Venus OS itself is also trying to control the relay state — say if you've got a generator autostart condition still active.
My Fogstar Drift 200Ah cells are sitting behind a Victron SmartShunt so the SOC data is solid, it's just the output side I'm struggling to get clean.
Would be good to hear from anyone who's done something similar — especially if you've built any kind of Node-RED dashboard around it. Wondering if this is better handled through the dbus-mqtt approach or going straight at the D-Bus with a Python script that Node-RED just triggers.