Fronius Integration: BYD Battery Box (HVS) SOH (State of Health)

I would like to be able to view the SOH (State of Health) of the BYD Battery Box from the Fronius Integration (new Entity). There are already BYD Battery Box informations (e.g. SOC) that gets accessed and as discussed in the forum link below there are multiple ways to get the SOH Data.

API: http://(IPv4 Fronius)/components/readable
Value: “BAT_VALUE_STATE_OF_HEALTH_RELATIVE_U16”

see: Fronius API Doku - Seite 4 - Fronius - Datenkommunikation - Photovoltaikforum

The Value changes that infrequent it does not have to be polled frequently.
Daily should be sufficient for the statistics.
I’d like to use it to get a notification if it changes/declines too frequently.

I think you should be able to get that value via a rest sensor.

1 Like

Thanks, the following seems to work if others want to use it.
I’d prefer if there would be a “official” entity by default inside the Fronius integration.

sensor:
  - platform: rest
    resource: http://(IPv4 Fronius)/components/readable
    scan_interval: 86400
    name: "Fronius BYD Battery Box SOH (State of Health)"
    unit_of_measurement: "%"
    value_template: "{{value_json.Body.Data['<Number>'].channels.BAT_VALUE_STATE_OF_HEALTH_RELATIVE_U16}}"
2 Likes

Glad it worked.