Solax integration - energy configurations

Hi, I have just added my Solax to the Solax Power integration but I wasn’t sure which options to go for in the configuration lists, does this set up look correct at a basic level? I appreciate it’ll take 2 hours / a few days to see data but just seeing if the actual selections look ok?

There wasn’t a relevant option under battery either.

I am new to this integration as QCell cloud API stopped working, see here for context.
I arranged it in a way is following the instrucitons at SolaX Power - Home Assistant: total consumption for grid consumption, total feed-in for return to grid, on-grid total yeld for solar production.


According to a lengthy discussion with chatGPT I resorted to two template sensors for battery charge and discharge as positive power W, with trapezoidal integral as kWh used int he energy configuration.

    # Battery charge power (positive values only)
    - name: "Solax Battery Charge Power"
      unique_id: solax_battery_charge_power
      unit_of_measurement: "W"
      device_class: power 
      state_class: measurement 
      state: >
        {% set p = states('sensor.solax_sn_battery_power') | float(0) %}
        {{ p if p > 0 else 0 }}

    # Battery discharge power (positive values)
    - name: "Solax Battery Discharge Power"
      unique_id: solax_battery_discharge_power
      unit_of_measurement: "W"
      device_class: power 
      state_class: measurement 
      state: >
        {% set p = states('sensor.solax_sn_battery_power') | float(0) %}
        {{ -p if p < 0 else 0 }}

I am not that sure about these data so far.
Did you manage to get satisfactory (i.e. correct) results?