Using my solar power in the energy dashboard

Hi,

I have a couple of solar arrays. one is newer than the other, the new one is fine but the old one is a bit of a fiddle to get data from.
As it stands I have via some old perl code pushed the solar power to mqtt so my config looks like this

  - platform: integration
    source: sensor.garage_solar_power
    name: garage_energy_spent
    unit_prefix: k
    round: 2


  sensor:
    - state_topic: "tele/solar/power"
      name: "Garage Solar Power"
      unit_of_measurement: "W"
      device_class: power

But I am unable to select them in the energy dashboard to add them.
Any ideas how I might get them to show up for use in Energy

Yes you have to convert the power into energy, so the amount of power over time. This can be calculated using the integral integration. Your template would look like this:
sensor:

  • platform: integration
    source: sensor.Garage_Solar_Power
    name: energy_spent
    method: left
    round: 2
    max_sub_interval:
    minutes: 5

Then you can use this sensor in your energy dashboard

That’s Great, I was almost there, thank you

This appears to have broken in the last release

Configuration warnings

Invalid config for ‘integration’ from integration ‘sensor’ at configuration.yaml, line 36: offset None should be format ‘HH:MM’, ‘HH:MM:SS’ or ‘HH:MM:SS.F’ for dictionary value ‘max_sub_interval’, got None Invalid config for ‘integration’ from integration ‘sensor’ at configuration.yaml, line 37: ‘minutes’ is an invalid option for ‘sensor.integration’, check: minutes

It was a space before minutes, thanks

Still not working.
in the energy configuration it says

Entity Not defined if I try adding it.