question

peternielsen avatar image
peternielsen asked

Home Assistant and Victron System

Hi,

I have following :

  • Multiplus II
  • Cerbo GX
  • Fronius AC Coupled inverter (connected to Cerbo with modbus)
  • Carlo Gavazzi EM24 meter (connected to Cerbo with modbus)
  • Victron MPPT
  • My system is 3 phase, the Fronius is producing on L3 and Multiplus II on L1

I want to have the battery, grid and solat into Home Assistant Energy dashboard and i got most of it in but it seems wrong, HASS shows more usage compared to VRM dashboard so i think it's wrong.

For now i am using :

Grid L1 - Energy from net 2603
Grid L2 - Energy from net 2604
Grid L3 - Energy from net 2605
Grid L1 - Energy to net 2606
Grid L2 - Energy to net 2607
Grid L3 - Energy to net 2608

to get the consumpton from grid and return to grid.

To get the Victron MPPT in i use :

PV - DC-coupled power 850

to get the Fronius production in i use :

PV - AC-coupled on input L3 813


For battery i use :

Battery Power (System) 842

and then i make two sensors to have both + and - energy going to/from battery

My problem is that when i compare VRM portal to HASS i see following :

  • Grid consumption in VRM is lower than HASS shows
  • Solar production is higher in VRM than on HASS
  • Total consumption from GRID is higher on HASS compared to VRM
  • Energy to battery is higher in VRM than on HASS

Any ideas whats causing this ?

1646650701545.png1646650715335.png1646650727504.png1646650750045.png

I should mention that my electricity provider has a meter where it calculates on all phases therefore i always go for hitting 0 meaning don't feed back if i can use it. The consumtion in the house is on 3 phases and Victron system using ESS makes sure that when i use 1000w on one phase the system produces 1000w on the phase the inverter is on so the sum is 0w and i don't pay to use 1000w when i also return 1000w but on another phase. I don't know if any of this makes problem for the energy dashboard.

Energy dashboard config:

1646651011586.png

Modbus config :

 -  name: victron
    retry_on_empty: true
    retries: 10
    type: tcp
    host: 10.10.0.85
    port: 502
    sensors:
    - name: "Energy from Grid L1"    
      unit_of_measurement: "kWh"
      slave: 40
      address: 2603
      data_type: uint16
      scale: 0.01
      precision: 1
      scan_interval: 20
      device_class: energy
      state_class: total_increasing
    - name: "Energy from Grid L2"    
      unit_of_measurement: "kWh"
      slave: 40
      address: 2604
      data_type: uint16
      scale: 0.01
      precision: 1
      scan_interval: 20
      device_class: energy
      state_class: total_increasing
    - name: "Energy from Grid L3"    
      unit_of_measurement: "kWh"
      slave: 40
      address: 2605
      data_type: uint16
      scale: 0.01
      precision: 1
      scan_interval: 20
      device_class: energy
      state_class: total_increasing
    - name: 'Energy to Grid L1'
      unit_of_measurement: "kWh"
      slave: 40
      address: 2606
      data_type: uint16
      scale: 0.01
      precision: 1
      scan_interval: 20
      device_class: energy
      state_class: total_increasing
    - name: 'Energy to Grid L2'
      unit_of_measurement: "kWh"
      slave: 40
      address: 2607
      data_type: uint16
      scale: 0.01
      precision: 1
      scan_interval: 20
      device_class: energy
      state_class: total_increasing
    - name: 'Energy to Grid L3'
      unit_of_measurement: "kWh"
      slave: 40
      address: 2608
      data_type: uint16
      scale: 0.01
      precision: 1
      scan_interval: 20
      device_class: energy
      state_class: total_increasing
    - name: "PV - DC power"      
      data_type: uint16
      unit_of_measurement: "W"
      slave: 100
      address: 850
      precision: 2
      scan_interval: 20
      device_class: power
    - name: "PV - AC power Fronius"      
      data_type: uint16
      unit_of_measurement: "W"
      slave: 100
      address: 813
      precision: 2
      scan_interval: 20
      device_class: power
    - name: 'Battery Power System'
      unit_of_measurement: "W"
      slave: 100
      address: 842
      data_type: int16
      scale: 1.0
      precision: 0
      scan_interval: 20
      device_class: power

Sensors :

- platform: integration
  source: sensor.pv_dc_power
  name: "Solar Energy Yield DC"
  unit_prefix: k
  round: 2  
- platform: integration
  source: sensor.pv_ac_power_fronius
  name: "Solar Energy Yield AC"
  unit_prefix: k
  round: 2  
- platform: integration
  source: sensor.battery_charge_power
  name: Battery Charge
  unit_prefix: k
  round: 2
- platform: integration
  source: sensor.battery_discharge_power
  name: Battery Discharge
  unit_prefix: k
  round: 2

Template :

- platform: template
  sensors:    
    battery_discharge_power:
      device_class: power
      friendly_name: "Battery Discharge"
      unit_of_measurement: "W"
      value_template: "{
  { max(0, 0 - states('sensor.battery_power_system') | float) }}"
    battery_charge_power:
      device_class: power
      friendly_name: "Battery Charge"
      unit_of_measurement: "W"
      value_template: "{
  { max(0, states('sensor.battery_power_system') | float) }}"
ESS
1646650701545.png (25.8 KiB)
1646650715335.png (10.6 KiB)
1646650727504.png (11.8 KiB)
1646650750045.png (11.6 KiB)
1646651011586.png (69.6 KiB)
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

1 Answer
thomasw-1 avatar image
thomasw-1 answered ·

I think you compare apples and oranges.
The EM24, where VRM rertrieves grid-feed-in and -consumption values, considers summed/netted values over all 3 phases. The netted value is used in VRM to display feed-in and grid consumption!
However, when you retrieve the single phase values like "Energy from Grid L1", the phase summing/netting is not considered in HASS.
Therefore the result between VRM and HASS must be different!

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

peternielsen avatar image peternielsen commented ·
And what is the solution then ?
0 Likes 0 ·