Zinvolt Accu intergration howto?

I have an battery from Zinvolt.
I have the Zinvolt intergration done.
Now the only sensors are:

  • Percentage of the batterij
  • Current power
    In the screenshot you can see this one.

    If it is negattive it's discharging the battery.
    If it is positive it's charging the battery.

Putting info into the energydistribution needs a 'sensor' for charging power and dischargingpower.
I've been playing with helpers but not succesfull.

How can i split the charging and discharging?

  • Helpers?
  • Scripts?

Can anybody help me on the way?

Gerrit

@Gerrit1 Daily Battery Charge Energy and Daily Battery Discharge Energy is currently not (yet) present in the integration but you can create them (this maybe not the easiest way).

  • First step: Create TWO Template Helpers (UI) >> replace battery_power for the correct entity <<
    Go to:
    Settings → Devices & Services → Helpers → Create Helper → Template → Sensor

Battery Charge Power

{% set v = states('sensor.battery_power') | float(0) %}{{ max(v, 0) }}

Battery Discharge Power

{% set v = states('sensor.battery_power') | float(0) %}{{ max(-v, 0) }}
  • Second step: Create ENERGY sensors using “Integration Helper”
    Now go to:

Helpers → Create Helper → Integral

Create:

Battery Charge Energy

Source: Battery Charge Power
Method: left (or trapezoidal)
Unit: kWh

Battery Discharge Energy

Source: Battery Discharge Power
Method: left (or trapezoidal)
Unit: kWh

  • Last step: combine it with a Utility Meter helper to get a daily reset.

Daily Battery Charge Energy

Input: the Integral helper output
Cycle: daily

Daily Battery Discharge Energy

Input: the Integral helper output
Cycle: daily

Now you should also be able to add them to the Energy Dashboard but take note that the kWh entities might need some time to become visible.

1 Like

@HAEdwin thank you.
This did it.

here a screenshot of the energyboard.

I had installed your HACS: Zinvolt P1-dongle PRO – Home Assistant Integration but they gave the information from the net import/export not from the Zinvolt battery.

Nice! Indeed this is for the time being, I heard the developer will improve the Zinvolt integration by adding functionality when there is enough info received from Zinvolt.