Hi HA Community.
I just connected my EV Charger to the system, and now i need it to charge only the cheapest hours a day, but it need to charge also if the price is below 3.5 DKK, then its still cheaper than gassoil.
In my setup i have created a sensor called " sensor.electricity_cost" where i have the attributes from nordpool incl. VAT, Tarrifs, elafgift, etc.
here i can see my attributes for every hour for today and tomorrow (tomorrow after 12:30).
then i have created five sensors for telling me if its:
- Meget Dyrt (Very Expensive)
- Dyrt (Expensive)
- Normal (Normal)
- Billigt (Cheap)
- Meget Billigt (Very Cheap)
What i would suggest is to create a counter to tell me how many of the hours is “Meget Billigt”, “Billigt” and “Normal” between plug in and next day 06:00. then if there is four hours with “Meget Billigt” it only turns on when “Meget Billigt”, if there is not enough hours when “Meget Billigt” it has to use the hours where “Billigt” and so on.
How do i do create three sensors counting the three sensors between plug in time and 06:00 next day ?
here is my five sensors for which telling me the arrays of price:
here is a picture of the attributes and the main sensor for electricity price:
Here is my chart telling me the prices for today and tomorrow (tomorrow only after today 12:30)
Hope anyone here can help me out with this one.
BR
/Mike