ksheumaker / homeassistant-apsystems_ecur

Home Assistant custom component for local querying of APSystems ECU-R Solar System
Apache License 2.0
166 stars 42 forks source link

Can't add sensor.ecu_current_power to energy dashboard HA #166

Closed m3tc0n closed 1 year ago

m3tc0n commented 1 year ago

Hello,

I have successfully installed the APsystems integration via HACS.

Now I would like to add the sensor 'sensor.ecu_current_power' to the energy dashboard, but it is not displayed as an option (only the sensors sensor.ecu_lifetime_energy and sensor.ecu_lifetime_energy are displayed).

How can this be resolved?

Thanks in advance.

rivendellstuff commented 1 year ago

same issue here. I don't want to continue to add the DAILY kw to the animated graph, I want to know the CURRENT power at all times coming from solar. Here's an image of the issue mentioned:

image

I'd like to create this Tesla graph from the Tesla app but it seems impossible at the moment:
(its night now so nothing is coming from the solar obv but this is live data)

https://user-images.githubusercontent.com/128875345/228467330-c5f2d47b-bb27-4e61-9201-643eef9d774c.mp4

also the inverter temperature sensors appear to not be usable? Even though the details of them do show a number, a thermostat icon and even C as the measurement. When I add it to any dashboard the value is just unknown and the actual temp is not a selectable attribute.

image

HAEdwin commented 1 year ago

https://github.com/ksheumaker/homeassistant-apsystems_ecur/issues/107#issuecomment-1247191667 and for temperature (offtopic here), check the online status and https://github.com/ksheumaker/homeassistant-apsystems_ecur/issues/86

rivendellstuff commented 1 year ago

#107 (comment) and for temperature (offtopic here), check the online status and #86

Hi, thanks for the reply. I don't think this quite answers the question though. Doing what is suggested makes not a great dashboard? It would make for a good graph at the end of the day perhaps. But for real-time monitoring it doesnt work.

this is what I get using the suggested ECU entity for todays energy. image

So this shows I guess how much electricity the house used, the grid gave, the batteries gave and received and how much the solar gave and received. Its pretty close to what the tesla app is stating as well, maybe a bit delayed and needs to catch up which is fine. But its 11pm right now and its actively showing solar going into the house.. but solar is dead since 7pm. The batteris are now fully powering our house and will give out in about two hours and we'll be fully on grid at that point til about 8am tomorrow. But this animated graphic will still keep saying the battery is sending us power when it isnt, like the solar is. Unless I'm understanding this wrong which is possible, this animated graph is pretty but not very useful. The same data is best shown in a bar graph or really just a few numbers for the day.

Then one can extrapolate the daily data to get weeks, months etc.

Thats great. But if you check out my video in my comment up top, that animated graphic seems better suited to emulate the Tesla one. Showing me real-time what hydro is going where, to what and from where.

Here's the Tesla one right now. Can see that we're only drawing power from the batteries at the moment. If our draw exceeds the battery capability the grid will send us the difference and its very easy to see that here cuz its just a new line real time of the amount, key point being it doesnt draw lines or animate directions unless hydro is ACTIVELY being drawn to from that src to that destination.

https://user-images.githubusercontent.com/128875345/228746661-105a1b6d-d92b-4467-8ef9-16ed0c84ea9d.mp4

now here is the HA graphic that functions similarly. But right now its like telling the daily usage i guess but constantly showing energy flowing in all directions. Not very useful or helpful. The numbers are useful for historical data but not realtime.

https://user-images.githubusercontent.com/128875345/228746840-9d5fd1a6-d8fd-4136-8cc4-5cfc952f78f8.mp4

So either im missing something obvious. Or despite having the sensors to pick up this data (the tesla stuff is using the exact same sensors to track this and the data is in HA I just cant select it for the graphic) monitoring real-time hydro usage in HA is not possible?

Thanks again.

(also I got the temperature thing sorted, thanks for that)

HAEdwin commented 1 year ago

You can use the integrations entities to create seperate bar graphs. The way the Energy Dashboard functions cannot be influenced by this integration. Try the homeassistant.io forum and makers of the Energy Dashboard. If any other question arrise about this integration, feel free to open a new ticket.

rivendellstuff commented 1 year ago

????

it says on HA to open a ticket with the github source when the desired entity isnt showing. it specifically says its a bug with the integration? you're saying this issue is with the energy dashboard?

I, nor the OP wanted bar graphs at all..... we wanted to use the current power NOW in the energy dashboard. the metric we want is THERE its just not flagged to be allowed in this dashboard. isnt that on the metric not the dashboard?

why did you close this as "complete"

100 million % not complete. you can say "fk off I dont wanna help you" thats fine. youre in no way requird and I appreciate the work thats been done on this thus far. but dont just CLOSE the issue as done when its not even addressed, let alone done man.

HAEdwin commented 1 year ago

No reason to get upset. Current power is in (W) but the Energy Dashboard displays Energy Distribution in (kWh) for all entities only, that is by design, I can't help that. The animated flows of energy after sundown is also by design. Hope things are clearer now.

Maybe this will help you: https://community.home-assistant.io/t/wth-doesn-t-the-energy-dashboard-work-with-watts-as-a-source/474891

rivendellstuff commented 1 year ago

No reason to get upset. Current power is in (W) but the Energy Dashboard displays Energy Distribution in (kWh) for all entities only, that is by design, I can't help that. The animated flows of energy after sundown is also by design. Hope things are clearer now.

Maybe this will help you: https://community.home-assistant.io/t/wth-doesn-t-the-energy-dashboard-work-with-watts-as-a-source/474891

ill read the thread over tomorrow and see if its helpful. i guess we have to accept that real-time monitoring of hydro is something HA cant do yet. It just seems sad that someone like you and others put a lot of work into these integrations and the sensors are RIGHT there....just not usable. I wasnt upset but I can tell you as this type of setup becomes more an more popular you're gonna get this question here more and more. Where I live they're talking about cutting natural gas completely in the next ten years. Solar and battery are gonna blow up. When a setup like this costs 60K+... ppl are gonna wanna monitor it and see the metrics. Like I said.. the numbers are already there... it like hurts that we cant just use them how we want to.

Guess we're stuck with the crappy tesla app.. so much for automation and having all the things in one place.

thanks for trying anyway.

m3tc0n commented 1 year ago

@HAEdwin maybe a stupid question, but is it not possible to change the current power consumption from W to kWh in your integration? I guess that should solve the problem with integrating the sensor in the energy dashboard.

HAEdwin commented 1 year ago

@m3tc0n Yes, I could if it doesn't create a dependency with another integration like Riemann but you'll have to provide a formula which I can then add to the new sensor. Easier option is to create the new sensor in configuration.yaml like explained in this thread https://community.home-assistant.io/t/wth-doesn-t-the-energy-dashboard-work-with-watts-as-a-source/474891

rivendellstuff commented 1 year ago

I ended up building a custom one from scratch (graphic animations and all) If anyone is interested I'll share the zip with some basic instructions. lmk

https://user-images.githubusercontent.com/128875345/229443038-aee4f1dc-f205-4850-b25c-e2ac86ba37ef.mp4

m3tc0n commented 1 year ago

Nice, I'm interested. Thanks!

rivendellstuff commented 1 year ago

Nice, I'm interested. Thanks!

alright cool. i gotta work in a custom template cuz theres 9 variations of energy flow. i need to work in swapping 1 of 9 images out based on source energy. it sorta works now but not perfect. i might need to integrate a custom template thing which make the instructions more complicated....

once i have that working right illl post it. unless you wanna do that work? then i can give u the images. .. lol... but im busy with work this week so probably next. stay tuned

rivendellstuff commented 1 year ago

Nice, I'm interested. Thanks!

I put it up here. I'm still tweaking it but if you wanna try it now as it is have a go.

Took a bit of time to get all the math right. I'm still tweaking it as its my first pass at anything home assistant. I'll probably refine it over time but it works for now. See how you get on. It looks more daunting than it is... but it could be plug and play mostly if you have the same hardware as me. If not you'll need to rename a few core sensors (and ids on the inverters). See the readme.

There's also an APSystems inverter output and temperature dashboard I made included as well. Let me know how it goes if you want > in the repo i posted above so that the author of this one doesnt keep getting notifications here with our chat :)

What it looks like:

https://user-images.githubusercontent.com/128875345/231962974-83bc04b1-6093-4a9e-aa31-6ee98177cab8.mp4

lings-animated-real-time-overview-demo

lings-apsystems-temp-dashboard-demo