muppet3000 / homeassistant-grott

Home Assistant Integration for Grott - MQTT
MIT License
65 stars 14 forks source link

Help with HA Energy Tab #81

Closed slovely closed 1 week ago

slovely commented 3 months ago

Hi, sorry if this is the wrong place for a query.

I've got your integration working - at least, the sensors have values that match the growatt app.

However, what I don't understand is the "Energy" tab on the sensors that I'd expect to use don't appear. E.g. for Export To Grid, on the energy config page pressing 'Add Return' presents this:

image

However, the entity I'd export to use for that is sensor.ouctXXXXXX_export_to_grid_power but it doesn't appear in the list. I think that is because the unit is Watts, and the dialog expects Wh/kWh. That doesn't make sense to me as I am not exporting kWh, I'm exporting kW.

Even the graphic in the energy tab seems wrong to me: image

These values should be Watts/kW surely? If not, which sensors should I map to the energy tab configuration?

Thanks very much! Please let me know if I can help or need to provide more information.

muppet3000 commented 3 months ago

Hi @slovely - No problem discussing this here, in fact it should probably be something that goes into an FAQ at some point.

This isn't an issue specific to my integration, this is the same for all energy monitoring in Home Assistant. Let me attempt to explain this in the best way I can (it took my quite a while to get my head around when they first introduced it as well).

Once you wrap your head around that it all makes sense, basically "it's hard" is the short answer.

What I'd absolutely love though is the ability to reuse the above widget to display the live-time view in W/kW if you have the sensors available because that looks really nice on a dashboard (one of the few things I like about the growatt website/app).

Hope that answers your question, let me know if there's anything else I can explain for you.

Sidenote - I recommend using the 'lifetime/total' values wherever possible on that energy dashboard over the 'today' ones, the 'today' ones occasionally fluctuate and it causes the graphs to go a bit mental. I've never seen the same issues with the 'lifetime/total' values.

slovely commented 3 months ago

Thank you for taking the time to compose that really helpful reply @muppet3000!

I've set the energy tab up again to use the Lifetime values - will see how the graphs look today. I can foresee me losing lots of time to HomeAssistant!! 😀

It would be nice to figure out how to do the live view of kW, but not that important to me. Just being able to see the battery SoC easily on a dashboard is going to be really helpful, rather than using the Growatt app (which, bizarrely, I cannot log into when on my WiFi network... only works if I use 4/5g 🤷‍♂️).

muppet3000 commented 3 months ago

I made myself a little dashboard like this: image

I'd like to see if I can repurpose that widget though, it would look really cool.

muppet3000 commented 3 months ago

Just did a bit of googling and found this forum post: https://community.home-assistant.io/t/energy-dashboard-realtime-energy-distribution/341690/

Take a look specifically at this post: https://community.home-assistant.io/t/energy-dashboard-realtime-energy-distribution/341690/15?u=muppet3000

I'm going to have a play with one of those two 'live-power' cards and see if I can get them working because they'll 100% do what we want!!!

99% of the time in HA someone has already done the thing that you want :D

slovely commented 3 months ago

Yeah, I've created a very similar dashboard. Looks very good!

Will be interested to see how you get on with the power card - I'll investigate those links tonight. Thanks!