hif2k1 / battery_sim

Home assistant home battery simulator - allows you to model how much energy you would save with a home battery
106 stars 13 forks source link

% of spared energy import #22

Closed littlbee closed 1 year ago

littlbee commented 2 years ago

Would be great if, when configuring this add-on, we could specify (optionaly) which is the entity where we measure total imported monthly energy (imported from the grid). This way, each simulated battery could not just only show the total energy spared per month, but also how much % this is compared to the imported grid energy.

hif2k1 commented 2 years ago

Thanks for this suggestion. I have been working on config flow, but this is a good idea. Would it just be percentage energy saved per month or would we need per day and week as well? Is it ok as an attribute or a separate sensor?

littlbee commented 2 years ago

I believe percentage saved per month would be good. This is at least how I have implemented it using custom sensors and templates: image

littlbee commented 2 years ago

Oh, and forgot to mention that as a attribute would be ok

hif2k1 commented 1 year ago

I've just pushed an update which I hope works and would has this feature. It is an attribute of the simulated import sensor. Let me know if it is working as you expected.