Make the daily yield of my solar panels visible?

Make the daily yield of my solar panels visible?

I don’t know how to do this in Home Assistant.

This is what I’m getting.

sensor:

  • platform: mqtt
    name: “totaal opbrengst zonnepanelen”
    state_topic: “70:B3:D5:6F:30:89/energy-solar/95778a43/pulstotal”
    unit_of_measurement: “puls”

My plan is:

  1. Retrieve “totaal opbrengst zonnepanelen” data at 00:00.
  2. Name this data A
  3. Then collect “totaal opbrengst zonnepanelen” data every 5 minutes.
  4. Subtract “A” from “totaal opbrengst zonnepanelen” and name it “B”.
  5. Divide “B” by 1000 then I have the number of Kwh because 1000 pulses is 1 Kwh.
  6. Name this “dag opbrengst zonnepanelen”.
  7. Display the “dag opbrengst zonnepanelen” with the map meter on the dashboard.

I hope someone my here can help me.

A simple template sensor should do

template:
  - sensor:
    - name: "Solar Output"
      state: '{{ states("sensor.totaal_opbrengst_zonnepanelen") | float / 1000.0  }}'
      unit_of_measurement: "kWh"
      device_class: energy
      state_class: total_increasing

EDIT: To be clear, that sensor is to be added to the “energy” panel. You’ll the, notably, get daily statistics.

If you want an actual separate sensor, use an utility_meter above it

thank you problem solved