ksheumaker / homeassistant-apsystems_ecur

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

No integration in Energy Management #107

Closed arduinopjotr closed 2 years ago

arduinopjotr commented 2 years ago

Hello, I have succesfuly setup the integration in Home Assistant. However, i want to integrate the ECU-R in the Energy monitor. Within the energy monitor i already configured the smartmeter. https://www.home-assistant.io/docs/energy/electricity-grid/

When i want to add the Solar production i need to add the entity from the ECU-R named "sensor.ecu_today_energy" but i it not visible. Home Assistant gives the clue because within the integration there must be told that this entity must me configured as an entity which to track statistics https://www.home-assistant.io/more-info/statistics/

Is this a known issue ? Is ther maybe an workarround ? Thanks

HAEdwin commented 2 years ago

You'll have to use sensor.ecu_lifetime_energy It takes around two hours before statistics become available. I'll study the second link you provided. Thank you.

arduinopjotr commented 2 years ago

Hello Edwin, I just configured the entity "sensor.ecu_lifetime_energy" in the recorder and after that the entity "sensor.ecu_lifetime_energy" is visible when i select : Settings -> Dashboard -> Energy ->Add Solar production But when i select this i get the message : statistics_not_defined sensor.ecu_lifetime_energy

HAEdwin commented 2 years ago

Does it need fixing? Go to Developer Tool > STATISTICS and search for sensor.ecu_lifetime_energy

arduinopjotr commented 2 years ago

It works ! Even with the warning that the statistics is not defined it works. As a mather of fact, why do i need to add sensor.ecu_lifetime_energy instead of sensor.ecu_today_energy ?

synack666 commented 2 years ago

I use ECU Today Energy, works too.

HAEdwin commented 2 years ago

You are right, both show the same increase per day and therefore the production per day. It indeed takes some patience to see the energy dashboard working.