The Home Assistant Energy dashboard can display power directed to and recieved from the battery storage. SunGather gets this data, but does not export it by default.
Trying to manually set it up in /share/SunGather/config.yaml didn't work, only one of the sensors is created and has no data.
/share/SunGather/config.yaml
# For full configuration options see: https://github.com/bohdan-s/SunGather/blob/main/SunGather/config-example.yaml
inverter:
host: 192.168.178.47
scan_interval: 30
connection: modbus
smart_meter: true
log_console: DEBUG
level: 1
# port: 502
# timeout: 10
# retries: 3
model: "SH6.0RT"
# serial: xxxxxxxxxx
exports:
- name: webserver
enabled: True
port: 8099
- name: mqtt
enabled: True
host: core-mosquitto
port: 1883
username: addons
password: censored
# topic: "SunGather/{serial_number}"
homeassistant: True
ha_sensors:
- name: "Daily Generation"
sensor_type: sensor
register: daily_power_yields
device_class: energy
state_class: total_increasing
icon: "mdi:solar-power"
- name: "Daily Export to Grid"
sensor_type: sensor
register: daily_export_to_grid
device_class: energy
state_class: total_increasing
icon: "mdi:transmission-tower-export"
value_template: "{{ value_json.daily_export_to_grid | round(2) }}"
- name: "Daily Import from Grid"
sensor_type: sensor
register: daily_import_from_grid
device_class: energy
state_class: total_increasing
icon: "mdi:transmission-tower-import"
value_template: "{{ value_json.daily_import_from_grid | round(2) }}"
- name: "Temperature"
sensor_type: sensor
register: internal_temperature
device_class: temperature
state_class: measurement
- name: "Power State"
sensor_type: binary_sensor
register: run_state
device_class: running
payload_on: "ON"
payload_off: "OFF"
- name: "Active Generation"
sensor_type: sensor
register: total_active_power
dev_class: power
state_class: measurement
icon: "mdi:solar-power"
- name: "Active Export to Grid"
sensor_type: sensor
register: export_to_grid
dev_class: power
state_class: measurement
icon: "mdi:transmission-tower-export"
- name: "Active Import from Grid"
sensor_type: sensor
register: import_from_grid
dev_class: power
state_class: measurement
icon: "mdi:transmission-tower-import"
- name: "Battery Charge Energy Today"
sensor_type: sensor
register: battery_charge_power_from_pv
device_class: energy
state_class: total_increasing
icon: mdi:battery-arrow-up
- name: "Battery Use Energy Today"
sensor_type: sensor
register: daily_battery_discharge_energy
device_class: energy
state_class: total_increasing
icon: mdi:battery-arrow-down

The entities created by the SunGather addon. Note that “Battery Charge Energy Today” has no data.
It would be great if working exports for Battery Charge Energy (kWh), Battery Discharge Energy (kWh), and Battery Level (in % and W) could be provided by default.
The Home Assistant Energy dashboard can display power directed to and recieved from the battery storage. SunGather gets this data, but does not export it by default.
Trying to manually set it up in
/share/SunGather/config.yamldidn't work, only one of the sensors is created and has no data./share/SunGather/config.yaml
It would be great if working exports for Battery Charge Energy (kWh), Battery Discharge Energy (kWh), and Battery Level (in % and W) could be provided by default.