ben-koonen avatar image
ben-koonen asked

Home Assistant Victron VRM Grafana

Is it possible to run the InfluxDB database in Homeassistant and get the data from VRM ?

What are the settings for de database to connect ?

vrm advancedgrafana
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

1 Answer
footswitch avatar image
footswitch answered ·

This is a good question and I'd like to see more comments on that.

First of all, InfluxDB and Grafana in Home Assistant is something you can do, and is well documented elsewhere. (HA community, YouTube etc)

But the data you want to collect, won't be coming from VRM, but instead directly from your Victron GX device.

Here's a topic to get you started:

To connect Home Assistant and Victron GX together, I think you have three main choices:

- Modbus-TCP

- MQTT (and there are different ways you can do this)

- Node-RED in Home Assistant, directly linked to your GX device.

With Modbus-TCP, you have to set the refresh rate for information to come through. From my experience, you shouldn't set that to lower than 5 seconds, or you start to run into timeout issues.

With MQTT, this is what your GX device uses to share data with VRM.

And correct me if I'm wrong, but:

When you open VRM, and the "Last updated" field shows "Realtime", VRM is in practice receiving realtime MQTT info from your GX. Meaning, if you enable MQTT over LAN (from the GX Console) you will be sending realtime MQTT data to VRM, all the time.

So an alternative would be setting up Node-RED in VenusOS Large, and from there, set up an MQTT link to Home Assistant, sending only the sensor data that you need. This way you don't enable MQTT over LAN, and you keep VRM as is. See:

And finally, you can have Node-RED in Home Assistant, and you can link that to your GX.

This option is more technical and sensitive. Read this carefully:

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.