Jump to content
Thank you for the great forum, Safe Driving over the weekend. Sincerely Jason
Sign in to follow this  
DeepBass9

Victron BMV in Home Assistant

Recommended Posts

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:

image.png.c4e88ffeb36105494398fe3d82607553.png

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)

image.png.1b30e3c1dec52a68ebc65a79f44f7bee.png

 Anyone have any ideas how to get the other values, and how to get the values to update periodically?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...