Replies: 4 comments
-
I think I've got the formula to calculate the new price after some x amount of energy was charged: NewPrice = the new price of the energy in the battery (EUR/kWh) @hif2k1 : would it be possible to create a helper component that implements the above logic and can be added both to your simulated batteries and actual batteries? i.e. so that we can use it to implement charging/discharging logic based on the actual price paid for the contents of a battery? |
Beta Was this translation helpful? Give feedback.
-
@hif2k1 do you have any comments, please? I think the above would be very helpful in implementing a working strategy aimed at return of investment in combination with a dynamic contract. |
Beta Was this translation helpful? Give feedback.
-
I've created this triggered template sensor that pretty much does what I want it to do, although I think it doesn't properly reload yet upon a restart of HA. Any suggestions?
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I would like to keep track of the price (in eur/kWh) of the energy stored in my (simulated) batteries. This would f.e. be extremely useful for decision making on when to charge or discharge the battery for optimal monetary results: if the current price for electricity is <= the price I paid for charging the battery, it makes sense to pause the battery. But when the current price for electricity is > the price of the energy in the battery, the battery should discharge as much the usage of the home. Any variations with bandwidths, incl. and excl. VAT etc. should of course be possible too.
Does anyone have a suggestion on how to keep track of only the price paid for charging the battery, diluting that price with the weighted price for the amount charged? I don't think the existing price sensors can be used for this purpose, or can they?
My suggested sensor for the price of the stored energy would not adjust its value when the battery discharges. When the battery discharges only the SOC (in kWh) lowers in value, the price sensor (in eur/kWh) would remain the same. When the battery charges however, both the SOC (in kWh) and the price (in eur/kWh) may change: the SOC sensor will get the amount charged added, the price sensor will have some value added that takes the current price for electricity and the amount charged. I can not get my head around the correct formula so that when an amount of C(1) kWh gets added at a current price of P(1) eur/kWh to the battery that has a previous charge of C(0) at a price of P(0). For simplicity I chose to leave the losses due to inefficiencies while charging and discharging out of it, but these of course need to be included at some point.
Beta Was this translation helpful? Give feedback.
All reactions