GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sijones/VE.DirectMQTTCANBUS: ESP32 middleware, VEDirect Smart Shunt to Inverter PylonTech protocol

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

38 Commits
38 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
pictures
pictures
 
 
src
src
 
 
.gitignore
.gitignore
 
 
HomeAssistant.yaml
HomeAssistant.yaml
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
platformio.ini
platformio.ini
 
 

Repository files navigation

This code will no longer be maintained, please use https://github.com/sijones/DiyBatteryBMS.git

VE.Direct2MQTTCANBUS takes data from a Victron Smart Shunt and sends it to a inverter over CAN allowing for "DIY LifePO4" Batteries to be integrated.

The data is also sent over MQTT and allows commands to be sent back to control Charge/Discharge/Force Charge.

This software uses a ESP32 developers board with a MCP2515 Can Bus adapter currently developed using Visual Studio code.

The software sends the data in Pylontech Protocol, most inverters should support this.

  • See also: https://www.victronenergy.com/live/vedirect_protocol:faq

With the help of the MQTT server you can integrate the monitoring data to virtually any Home Automation System. I use Home Assistant to automate off peak battery charging (using Force Charge) and can also enable and disable the charging and discharging.

Features

  • Listen to VE.Direct messages and publish a block (consisting of several key-value pairs) to a MQTT broker
    Every key from the device will be appended to the MQTT_PREFIX and build a topic. e.g. MQTT_PREFIX="/SMARTBMS"; Topic /SMARTBMS/V will contain the Battery Voltage
    so please see the VE.Direct protocol for the meaning of topics
  • Supports MQTT Commands to enable and disable charge/discharging of an inverter, force charge the batteries to be able to charge over night at off peak rates. See the home assistant file for the commands and config.
  • SSL is currently disabled
  • Supports single MQTT server
  • OneWire temperature sensors will be supported in a future version
  • OTA (Over The Air Update)
    use your browser and go to http://IPADDRESS/ota and upload the lastest binary.
  • One config file to enable/disable features and configure serial port or MQTT Topics
  • Works with both Victron Smart Shunt and BMV hardware

Limitations

  • VE.Direct2MQTT is only listening to messages of the VE.Direct device
    It understands only the "ASCII" part of the protocol that is only good to receive a set of values. You can't request any special data or change any parameters of the VE.Direct device.

Hardware & Software Installation

See the Wiki page

Disclaimer

I WILL NOT BE HELD LIABLE FOR ANY DAMAGE THAT YOU DO TO YOU OR ONE OF YOUR DEVICES.

About

ESP32 middleware, VEDirect Smart Shunt to Inverter PylonTech protocol

Resources

Readme
MIT license
Activity

Stars

18 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.