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 ?
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:
- 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:
Additional resources still need to be added for this topic
32 People are following this question.