kellerza / pysma

Async library for SMA Solar's WebConnect interface
MIT License
59 stars 51 forks source link

Statistic entities home assistant #83

Closed clasheleander closed 3 years ago

clasheleander commented 3 years ago

Any plans for adding support for entities in the new Energy thing in homeassistant? Thanks!

https://www.home-assistant.io/more-info/statistics/

rklomp commented 3 years ago

Should be supported already. I am using it without issues.

clasheleander commented 3 years ago

Ok, Strange, i disabled all yaml config for SMA, uninstalled the integration and installed it again. the Energy integration still not showing correct entities from drop down.

grid grid2 solar sma_info

clasheleander commented 3 years ago

I have also deleted sma and pysma folder from custom_components to make sure im not using any outdated version.

clasheleander commented 3 years ago

https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics

clasheleander commented 3 years ago

Is there any difference between below entities and the others? (with icon "lightning bolt") lightning bolt ones are the only listed in the Energy configuration drop down. sma_info_2

kellerza commented 3 years ago

The lightning ones are only ones that satisfy:

(you can see this in the dev tools as well)

It is only energy devices (kWh unit) so all seems ok from your screenshots

clasheleander commented 3 years ago

Ok. How can i then add the right entitie, for example "grid_power" to the production config/make it selectable?

Thanks.

clasheleander commented 3 years ago

or is it just me who is stupid and has not understood what the new energy function does? :)

kellerza commented 3 years ago

Its only energy (kWh) and not power (W / kW) 😉

Or see it as the power units you buy from the electricity grid, which they sell as 1 hour of using 1000W

once you have it working you nicely see how much energy/units you consumed per hour

clasheleander commented 3 years ago

I feel so stupid!!! :) Sorry i took your time!

kellerza commented 3 years ago

No worries 👍