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:
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