Problem with the Growatt integration

I am trying to get the Growatt integration work. The resulting sensor that shows the energy produced by my solar installation doesn’t have the state_class (with attribute total or total_increasing) and therefore I cannot use it in the solar panel configuration - the sensor isn’t showing up.

Is there a way I can fix this / set the state_class for the sensor.

From memory you need to give it a state class via yaml, but don’t quote me on that

Please file an issue for the integration (or check if one already exists)

Additionally, to fix locally, you can either:

  • use customize to add a state class
  • create a new template sensor for the entity with the proper state class.