hif2k1 / battery_sim

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

Daily Stats #7

Closed capqwerty closed 2 years ago

capqwerty commented 2 years ago

This might be a newbie question but here goes.

Is there a way to capture daily \ weekly graphs and stats?

hif2k1 commented 2 years ago

I have added a daily, weekly and monthly energy saved counter in the latest release - update in HACS to get these. They are in the attributes of the batter sensor. If you would like more detail or graphs you could create a template sensor for the the energy saved. This code would need to be added to your config file.


 - sensor:
      - name: total_energy_saved
        state: "{{ state_attr('sensor.tesla_powerwall', 'total_energy_saved) | float }}"
        unit_of_measurement: 'kWh'