Being able to monitor solar and battery states of charge with homeassistant unlocks powerful cabablitys.
I had used the Vicrton BMV-712 on a off grid solar system for several years before atempting to use it with home assistant. Home assistant is very helpful with load management in off grid applications, I used this to control loads when the batterys where full, and when they got low, turning on and off smart switchs.
This system uses the fallowing;
Victron Energy Interface MK3-USB (VE.Bus to USB) The cable MUST be isolated !
Victron Energy BMV-712 Battery Monitor Likely works with other verant’s
A Venus OS Device – I use a Raspbery Pi 4, 2GB
The fallowing config was used in the home assistant config file.
modbus:
- name: victron
type: tcp
host: 192.168.1.1 # IP Address of Venus OS Device
port: 502
sensors:
- name: 'Victron Battery Voltage'
unit_of_measurement: "V"
slave: 239
address: 259
scale: 0.01
precision: 1
device_class: voltage
state_class: measurement
- name: 'Victron Battery Amperage'
unit_of_measurement: "A"
slave: 239
address: 261
scale: 0.1
precision: 0
scan_interval: 10
device_class: current
state_class: measurement
- name: 'Victron Battery Consumed Amphours'
unit_of_measurement: "A"
slave: 239
address: 265
scale: 0.1
precision: 1
device_class: current
state_class: measurement
- name: 'Victron Battery State Of Charge'
unit_of_measurement: "%"
slave: 239
address: 266
scale: 0.1
precision: 1
device_class: power
state_class: measurement
- name: 'Victron Battery Capacity'
unit_of_measurement: "A"
slave: 239
address: 309
scale: 0.1
precision: 1
device_class: current
- name: "Victron Home Time to go"
unit_of_measurement: "seconds"
slave: 239
address: 303
scale: 100
state_class: measurement
This isn’t all of the address’s that can be pulled, If you figure out any others please let me know, So i can update this artical.