Victron system integration

Hi @TinoVieira

Okay, I completely cleaned up my yaml file and made fresh templates. Looks fine so far. If you still need assistance getting this to function, let me know. It appears to be 95% lined with my Victron. Rest of the week will be spent testing:

How did you do the solar production in kWh? My sensors (modbus and victron integration) only offer W. Is that a calculation or am I missing a sensor?

I have been running Venus OS on a RPI in my off grid cabin, but for various reason, I messed up that RPI trying to update it to a newer version (I only had like an hour with a laptop that I could insert the SD card to, but I didn’t get it to work, surely some crap with the partitions on the SD card).

Anyway, I am leaving tomorrow and won’t be back before late June. I still have a RPI running Home Assistant in the cabin, and plugged in all USB cables from the below devices to the the Home Assistant RPI.
Victroin Multiplus II 5000/48
Victroin SmartShunt
Victron MPPT

None of the devices showed up in HA by themselves. Is there anyway to connect them directly to HA without a Cerbo/GX device?

Hi! Im folowed this guides, and have implemented Victron MPPT into my HA! Working very good!
Look this one: First Version
And this one: Second version
So, no modbus required!

Thanks, but I also don’t have a cerbo/GX device installed, just all the VE.can/VE.direct to USB cables plugged directly into the RPI running HA. If I plug those cables into a ESP32 there are protocols to make it work — but can’t isn’t there some way to make it work without the ESP?

People have solved that by making a templates and calculate watts to watt hours. Then use those template results in dashboard cards.

Hi I’m struggling to get the data displayed from my Victron Multiplis would you mind sharing the various code needed. Thanks

Hi All,
I am trying to add 2 victron based systems to my HA and will add another later. When I try to add another instance of the integration I get an error only 1 instance allowed. Is there a way to connect to 3 systems at once. I need 1 for my ESS system at Home, 1 for my campervan and 1 for another remote system for a ham radio repeater which I have a wifi link to.

After installation, the discharging of the battery to the grid is limited to about 300 watts. I cant find any restrictions via remote console or veconfigure. Any clue what can be the cause? I suspect
That home assistant has changed sometihng in the multiplus ii thats not visible via remote console or veconfigure. Any help appreciated!

Hi Donnib,

Thks for the great work.

I have tried to copy your setup, to get the Energy information needed. It is done via modbus, at the moment, at I get all the needed data.

Battery Power system from address 842 is available.

When addind the template in my template.yaml file,

#### Victron battery power converters ############
##################################################
#        battery_discharge_power:
#        device_class: power
#        friendly_name: "Battery Discharge"
#        unit_of_measurement: "W"
#        value_template: "{{ max(0, 0 - states('sensor.victron_system_battery_power') | float) }}"
#        battery            _charge_power:
#        device_class: power
#        friendly_name: "Battery Charge"
#        unit_of_measurement: "W"
#        value_template: "{{ max(0, states('sensor.victron_system_battery_power') | float) }}"

I get error in my log:

Invalid config for 'template' at template.yaml, line 24: required key 'state' not provided Invalid config for 'template' at template.yaml, line 26: 'friendly_name' is an invalid option for 'template', check: sensor->2->friendly_name Invalid config for 'template' at template.yaml, line 28: 'value_template' is an invalid option for 'template', check: sensor->2->value_template

The sensor: -platform: integration I have added to my configuration.yaml file

Marinus

Updating HA to 2025.1 causes victron integration to fail