Insights title is different on graph screen

Hi all, I am creating an app to read my generated solar power. In the graphs it shows as ‘used energy’, which is not correct. I’ve changed the title to 'generated energy.
On the meter screen the title has changed (‘Vermogen’), but on the graph screen it still says ‘Energieverbruik’ (energy consumption). The title for ‘voltage’ (spanning) has changed correctly.
Do I have to make another change elsewhere?
Best regards, Dick


2 Likes

Hi Dick,

Great work on your solar app,it looks very promising.

Regarding the graph screen still showing energieverbruik even after renaming the capability to generated energy,this is a known behavior in homey.

To fix it, make sure you update the capability title and the capability type correctly in the app.json or your device class. specifically:

Double check the capability name you’re using for energy. If it is still using meter power or measure power and has not been remapped, the system may still treat it as consumption.
Try setting a custom capability like meter generated energy if it truly reflects generation and define the title in your localization files en.json nl.json.
After that, reinstall the app or remove and re add the device so Homey refreshes the graph labels with your custom naming.

This should solve the mismatch between the icon view and the graph label.

Let us know if that helps.

Best regards by duckket

Hi Duckket,

Thanks for your reply! Now I can stop looking why it isn’t working like I thought it would ! :sweat_smile:

I made a custom capability like you suggested, and that works.

Best regards,

Dick

1 Like