Posted February 11, 20205 yr I have been trying to get BMV 712 values into home assistant. I seem to be on the right track. I am using a VE direct cable into a USB port on the PI. I am getting some data from the BMV, but something is not working properly. The BMV is supposed to send the values every second or so to the USB port in a tab delimited format. I am managing to read one value, and then that's it. Does anyone have any clues as to what the problem can be? I have it set up as follows in the configuration.yaml file : Quote #BMV - platform: serial serial_port: /dev/serial/by-id/usb-VictronEnergy_BV_VE_Direct_cable_VE4A9OUM-if00-port0 name: BMV712 baudrate: 19600 - platform: template sensors: bmv_data: friendly_name: Anything unit_of_measurement: "V" value_template: "{{ states('sensor.serial_sensor').split('\t')[0] states('sensor.serial_sensor').split('\t')[1] }}" I have fiddled around with many permutations of the value template and only get this: That is correct and is the amount of charged energy and agrees with what I see on the victron app, but it is static and only changes with a reboot of the pi (s I assume it is reading one line of data and nothing further) Anyone have any ideas how to get the other values, and how to get the values to update periodically?
February 11, 20205 yr Author I also came across this guy who managed to get it right with a script that writes the data to a file which then gets parsed into HA. (translated from Norwegian) : https://translate.google.com/translate?sl=auto&tl=en&u=https%3A%2F%2Fbaatplassen.no%2Fi%2Ftopic%2F141981-b%C3%A5tautomasjon-med-batterioverv%C3%A5king-og-zigbee%2F
March 4, 20205 yr I linked mine up to the Colour GX which was very easy in the end - cant help with BMV though sorry: Added this to Configuration.yaml and had to "enable modbus-TCP" on Colour GX : sensor: - platform: modbus registers: - name: Grid power hub: victron unit_of_measurement: "W" slave: 100 register: 820 - name: Solar power hub: victron unit_of_measurement: "W" slave: 100 register: 850 - name: Load hub: victron unit_of_measurement: "W" slave: 100 register: 817 - name: Battery hub: victron unit_of_measurement: "%" slave: 100 register: 843 - name: Grid Failure hub: victron unit_of_measurement: "State" slave: 100 register: 826 https://community.victronenergy.com/questions/12314/connecting-rpi-with-venusos-mqtt-to-home-assistant.html Edited March 4, 20205 yr by Tim
May 14, 20205 yr Hello, Did you come right with this? I managed to get it working with a nodemcu board posting values to MQTT with a BMV-600 though.
December 28, 20204 yr i use icc to spit out mqtt onto my homeassiatants mqtt broker then pull the data from that
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.