Hello,
I’m having trouble receiving Victron device data (such as battery voltage, current, AC power, etc.) in Node-RED through MQTT.
We live completely off-grid using a 6kw wind turbine and 4kw solar but i would like to use Node-Red to automate loads, generator control etc.
My system comprises of a Quattro 10000, CCGX, 2xBYD battery box pro, Fronius Primo 5-0.1, and SMA Windy Boy.
The only device that is displaying on the Device List on the Raspberry pi VRM portal is the Fronius. (everything is fine on the CCGX and remote VRM portal)
Here’s what I’ve done so far:
Setup:
- Device: Victron CCGX with the latest Venus OS Large image.
- MQTT Broker: Mosquitto running on a Raspberry Pi with port
1883
configured. - Node-RED: Configured to connect to Mosquitto with the correct MQTT settings.
Steps Taken:
- Mosquitto Configuration:
- Ensured Mosquitto was running and listening on the correct port using
netstat
. - Verified that Mosquitto was running correctly after several reboots.
- MQTT Topic Subscription:
- In Node-RED, I subscribed to the topic
N/Ac/Consumption/L1/Power
(and other specific topics likeN/Dc/Battery/Voltage
). - Data wasn’t coming through. I only received the serial number of my CCGX in Node-RED and
mosquitto_sub
, despite the correct setup.
- Testing Data Flow:
- Used MQTT Explorer and
mosquitto_sub
with the topicN/Ac/Consumption/L1/Power
andN/#
, but only the serial number is shown; no detailed data like voltage, current, or power. - Checked CCGX MQTT settings, which seem to be configured correctly for publishing data.
- Troubleshooting:
- Killed the Mosquitto Bridge process to ensure the Mosquitto broker is handling data flow.
- Restarted Mosquitto multiple times, as well as Node-RED, but no data flow changes.
- Verified Mosquitto is receiving data from the CCGX, but it only receives the serial number.
- Logs: No error messages in Mosquitto or Node-RED logs that indicate a problem, except the lack of data on the expected topics.
- I have SSH access to the CCGX.
Questions:
- Is there something I’m missing in the CCGX MQTT configuration that’s preventing the data from being published (such as specific topic configuration)? There doesn’t seem to be any options to configure this.
- Are there additional permissions or settings in the Mosquitto or CCGX configuration I should check?
- Any other advice on troubleshooting Victron MQTT setup or ensuring proper data flow to Node-RED?
- I’m a beginner at all this so be gentle please!
Thanks for your help!