Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mk4001/ve.direct2mqtt-1.0
Victron Energy VE.Direct UART data output to MQTT using Espressif ESP32
https://github.com/mk4001/ve.direct2mqtt-1.0
Last synced: about 1 month ago
JSON representation
Victron Energy VE.Direct UART data output to MQTT using Espressif ESP32
- Host: GitHub
- URL: https://github.com/mk4001/ve.direct2mqtt-1.0
- Owner: mk4001
- Created: 2023-07-20T08:40:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-26T14:04:10.000Z (11 months ago)
- Last Synced: 2024-01-26T15:26:12.089Z (11 months ago)
- Language: C++
- Size: 1.23 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VE.Direct2MQTT
Victron Energy VE.Direct UART data output to MQTT using Espressif ESP32 (based on Arduino platfrom)The idea of untying the Smart Solar MPPT 75/15 by Victron Energy from the BLE APP of the smartphone and being able to bring the send to an MQTT broker, led me to create this project.
The VE.Direct interface, on most Victron Energy products, is in fact a UART which transmits at a rate of one record per second at 19200 baud.
It is necessary to make a simple adapter cable with the help of a JST 2.0 PH 4 connector easily available both on Amazon and on Aliexpress.
The pins of the UART port in question, I only used PINs 1 (GND) and 3 (TX), then connected to Serial2 of a "DEVIT V1 ESP32-WROOM-32 Development Board" (Ports GND and GPIO16).
Data, flows from the UART port at the rate of 1 record/sec.
Detailed documentation of the fields, their format and content is gathered here:
https://www.victronenergy.com/upload/documents/VE.Direct-Protocol-3.33.pdf
Once the record has been captured on the ESP32, needs to parse the fields and collect the data, of what we need, before sending to MQTT broker
When your broker is finally receiving data you can decide to collect them (maybe using InfluxDB TELEGRAF):
https://www.influxdata.com/time-series-platform/telegraf/
and create a wonderful Dashboard on Grafana (always in the cloud, always free)
https://grafana.com/auth/sign-up/create-user?pg=hp&plcmt=hero-btn1&cta=create-free-account
With a little imagination and above all practice, you can even create dashboards like these:
![image1](https://github.com/mk4001/VE.Direct2InfluxDB/assets/50479511/0b3f3881-2aa3-4213-99fa-47e8b954535b)
![image2](https://github.com/mk4001/VE.Direct2InfluxDB/assets/50479511/179841d6-7990-4e45-8d7f-5db96ba6c5a7)
the obviously "cool" thing about this is that you can consult the data of your Victron Energy devices quickly and easily from anywhere and customize them as you like.
Alternatively you can use node red and manipulate the data as you see fit or create an ad hoc dashboard.
https://nodered.orgInspired by: https://github.com/DocBrown101/Ve.Direct.InfluxDB.Collector