Official HA app or community app?
If it’s the second one, then start reading here:
Add a custom device, add the entities as measure_power and meter_power (main capability, not as subcapability). Then set device class to solarpanel in device settings. For further questions about HA community app, please use the linked thread.