I have been trying to integrate my victron system to HA.
The code looks all good and I receive no errars - have been spending a couple of day. The problem is that my modbus entities don’t display. Any help will be appreciated.
Here is snippets of the core code:
configuration.yaml
Loads default set of integrations
default_config:
Modbus configuration (for Victron Cerbo GX)
modbus: !include victron_modbus.yaml
Sensor configuration
sensor:
- platform: modbus
modbus_controller: victron_cerbo_gx
registers: !include victron_sensors.yaml # Load registers from victron_sensors.yaml - platform: template # Added platform key for template sensors
sensors: !include victron_template_sensors.yaml
Group configuration
group:
victron_energy_system:
name: “Victron Energy System”
entities:
- sensor.energy_meter_grid_voltage
- sensor.energy_meter_grid_current
- sensor.energy_from_grid
- sensor.energy_to_grid
- sensor.inverter_ac_voltage
- sensor.inverter_ac_current
- sensor.inverter_ac_loads
- sensor.battery_voltage
- sensor.battery_current
- sensor.battery_power
- sensor.battery_soc
- sensor.pv_tracker_0
- sensor.pv_tracker_1
- sensor.pv_tracker_2
- sensor.pv_tracker_3
- sensor.pv_all_trackers
Other configurations (automations, scripts, etc.)
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
The for my victron_sensor.yaml
Victron Cerbo GX Modbus TCP connection settings
name: victron_cerbo_gx
type: tcp
host: 192.168.1.207
port: 502
delay: 0
message_wait_milliseconds: 30
timeout: 5
Registers configuration
registers:
- name: “Energy Meter Grid Voltage”
unique_id: “energy_meter_grid_voltage”
unit_of_measurement: “V”
slave: 30
address: 2616
input_type: input
data_type: uint16
scale: 0.01
precision: 1
device_class: voltage
state_class: measurement
icon: mdi:voltage-ac
other sensors list …
Then my victron_system_overview_entities
This file contains the configuration for the Victron Energy System Overview, Grid Side Monitoring, Inverter Monitoring, Battery Monitoring, PV Controller Monitoring and PV AC Coupled Monitoring sensor groups.
system_overview:
name: “Victron System Overview”
entities:
- sensor.victron_energy_system
grid_side_monitoring:
name: “Grid Side Monitoring”
entities:
- sensor.energy_meter_grid_voltage
- sensor.energy_meter_grid_current
- sensor.energy_from_grid
- sensor.energy_to_grid
inverter_monitoring:
name: “Inverter Monitoring”
entities:
- sensor.inverter_ac_voltage
- sensor.inverter_ac_current
- sensor.inverter_ac_loads
- sensor.inverter_critical_loads
battery_monitoring:
name: “Battery Monitoring”
entities:
- sensor.battery_voltage
- sensor.battery_current
- sensor.battery_power
- sensor.battery_soc
pv_controller_monitoring:
name: “PV Controller Monitoring”
entities:
- sensor.pv_tracker_0
- sensor.pv_tracker_1
- sensor.pv_tracker_2
- sensor.pv_tracker_3
- sensor.pv_all_trackers