PimDoos / ha-sessy

Home Assistant integration for Sessy (Smart Energy Storage SYstem)
27 stars 10 forks source link

Add Energy sensors #8

Open PimDoos opened 1 year ago

PimDoos commented 1 year ago

Add energy sensors (kWh meters)

Renewable Energy meters:

PimDoos commented 1 year ago

Awaiting API change from Sessy.

PimDoos commented 1 year ago

Temporary workaround to get Energy Dashboard working: Add two helpers (Riemann sum integral) with the 'battery charge power' and 'battery discharge power' sensors as source: image image

TomNagel123 commented 1 year ago

The power that is reported by the Sessy is very inaccurate. I have seen that

StevenLooman commented 1 year ago

Is there any news on this?

PimDoos commented 1 year ago

I spoke to the Sessy team recently, energy sensors are on their backlog, but is not their priority yet (current focus is stability and core features). I do expect it in the coming weeks/months.

PimDoos commented 1 year ago

Updated the temporary workaround for now. v0.3.2 adds the separate Charge Power and Discharge Power sensors, so the templates are no longer needed.

berendhaan commented 1 year ago

I'm not able to select the charge and discharge entities when configuring the Energy Dashboard, currently running v0.4.0. The unit of measure for both at kW, that is not correct right?

PimDoos commented 1 year ago

Hi Berend, you still need to create Riemann Sum Integral helpers to convert the Power sensors in kW to Energy sensors in kWh. The steps above are still applicable

newmedia commented 1 year ago

Hi Pim, My sessy just got installen also (v1.4.0 on the P1/Battery). I was trying to add the 2 helpers.. but i dont have the two sensors called: sensor.sessy_battery_charged and sensor.sessy_battery_discharged.

This is the list i have:

An update.. The Battery wasn't detected and i had to add in on my own. Now i have alot of extra sensors!

Tazzios commented 1 year ago

Has some one working code use the helpers to calculate the profit per day/month?

FabianZoon commented 6 months ago

Tip: The helpers are only triggered when something is happening. Only then they will change from the Unknown value and will they be visible to be picked by the configure the battery in the energy dashboard. You need first do some charging/uncharging before you can use them.

Tazzios commented 6 months ago

Has some one working code use the helpers to calculate the profit per day/month?

For the profit calculation, I have created the following:

template:
  - sensor:
      - name: Sessy_EUR_uur
        unit_of_measurement: EUR
        state:  >
          {% set laden = states.sensor.sessy_XXXX_power.state | float(0) %}
          {% set price = states.sensor.electricity_price.state | float %}
          {{ ((laden/1000) * price) }}

Create a Reimann sensor using the sensor, trapezoidal rule (if i remember correct).

Create the utility meters that you want:

utility_meter:
  sessy_eur_dag:
    name: Sessy_EUR_dag
    source: sensor.sessy_eur_reimann
    cycle: daily
    net_consumption: true 

  sessy_eur_maand:
    name: Sessy_EUR_maand
    source: sensor.sessy_eur_reimann
    cycle: monthly
    net_consumption: true 
AJediIAm commented 6 months ago

Has some one working code use the helpers to calculate the profit per day/month?

This question belongs on the Home Assistant forum, not in a GitHub enhancement request.

Chef-70 commented 4 months ago

The power that is reported by the Sessy is very inaccurate. I have seen that

  • discharge power of 1700 equals 1530W on my P1 meter
  • charging 1940W equals 2140W on my P1 This is very relevant when you are looking to the integrals of both numbers. It will seem like the Sessy has no energy losses at all.

Same here. I.e. yesterday morning battery was 0% full. Charged 1.9 kWh, discharged 1.5 kWh, 0% at the end of the day.

Temporary workaround to get Energy Dashboard working: Add two helpers (Riemann sum integral) with the 'battery charge power' and 'battery discharge power' sensors as source Edit: images removed to reduce clutter.

Hi, Is it possible this is very inaccurate? I.e. yesterday morning battery was 0% full. Charged 1.9 kWh, discharged 1.5 kWh, 0% at the end of the day. I understand there might be some loss but more than 20%?

PimDoos commented 4 months ago

The integration is accurate. Power reported by Sessy may deviate a bit due to losses in converting from AC to DC (charging) and DC to AC (discharging). Depending on your charge power, conversion efficiency can be between 70-95% per conversion. So your round-trip efficiency (two conversions) would be 50% in the worst case and 90% in the best case.