I’m trying to get working energy dashboard with my victron Energy system.
Into configuration.yaml I added this :
modbus: !include victron.yaml
template:
- sensor:
- name: "Battery power victron input"
unit_of_measurement: "W"
state: >
{% if states('sensor.battery.power.victron')|float >= 0 %}
{{ states('sensor.battery.power.victron') }}
{% else %}
0
{% endif %}
- name: "Battery power victron output"
unit_of_measurement: "W"
state: >
{% if states('sensor.battery.power.victron')|float < 0 %}
{{ -1 * states('sensor.battery.power.victron')|float }}
{% else %}
0
{% endif %}
utility_meter:
#total battery input power
daily_battery_input_power:
source: sensor.total_battery_input_power
cycle: daily
monthly_battery_input_power:
source: sensor.total_battery_input_power
cycle: monthly
#total battery output power
daily_battery_output_power:
source: sensor.total_battery_output_power
cycle: daily
monthly_battery_output_power:
source: sensor.total_battery_output_power
cycle: monthly
and victrom.yaml is :
# modbus:
- name: cerbo
host: 192.168.0.200
type: tcp
port: 502
sensors:
# SYSTEM
- name: "Battery Power Victron"
data_type: int16
unit_of_measurement: "W"
slave: 100
address: 842
scale: 1
device_class: power
# MPPT
- name: "Production today"
data_type: uint16
unit_of_measurement: "kW"
slave: 100
address: 784
scale: 0.1
precision: 3
device_class: energy
state_class: total_increasing
# GRID
- name: "From the grid"
data_type: uint32
unit_of_measurement: "kWh"
slave: 31
address: 2634
scale: 0.01
device_class: energy
state_class: total_increasing
- name: "To the grid"
data_type: uint32
unit_of_measurement: "kWh"
slave: 31
address: 2636
scale: 0.01
device_class: energy
state_class: total_increasing
Ptoblem is that in the energy dashboard I can’t see a battery and also not a MPPT production
What I’m doing wrong ?
Thanks for help