hif2k1 / battery_sim

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

Negative values #116

Closed jmcollin78 closed 9 months ago

jmcollin78 commented 9 months ago

Hello,

I install your wonderfull integration and I wonder why I've got the total sensor.battery_sim_enphase_3t_2nd_gen_total_money_saved as a negative number.

All energy sensor are positive in my configuration. Should export be negative ?

hif2k1 commented 9 months ago

Money saved can be negative especially early on. As the battery charges for the first time it will use electricity you would have been paid for exporting. If it hasn't discharged much yet to save you on importing you will have a negative money saved. Alternatively you may have set the tariffs so that the export value was higher than the import you will also lose money or if you force it to charge from the grid. If you still think it is incorrect then please post your exact setup (tariffs etc). Many thanks.