-
I want to charge my car from 22:00 to 06:00 with lowest price. I have already made a binary_sensor template using the attributt "is_five_cheapest" and used the binary_sensor in the condition. How can I make a template with only the cheapest prices between 22:00 to 06:00 using Priceanalyzer?
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Neat! Then, you can probably just use the binary_sensor as a trigger, and do a if on the same binary_sensor to see if it should start of stop charging, like you did in your example. You current automation would probably just start charging the car when you connect the charger(when easee_status changes) between 22:00 and 06:00 and only if you plugged it in during the five cheapest hours, as the automation does not trigger again after you plugged it in ? Don't hesitate to ask if you need more help: -) |
Beta Was this translation helpful? Give feedback.
-
I need some help to make the binary sensor from the five time stamps the template output: I found a finnish person who have made a binary sensor with only the lowest time stamp (https://www.creatingsmarthome.com/index.php/2022/09/17/home-assistant-nord-pool-spot-prices-and-how-to-automate-devices-for-cheapest-hours/). |
Beta Was this translation helpful? Give feedback.
-
Sorry I did not read good enough. For making the binary sensor I need only this variabel {{tonight.is_in_cheapest_hours}}.
Could this template be more simplified? I only want to have the prices from 22:00 to 06:00, but if I read the code in the template it takes the prices from now to 22:00 and compare the prices to find the best prices. Is this correct?
|
Beta Was this translation helpful? Give feedback.
Sorry I did not read good enough. For making the binary sensor I need only this variabel {{tonight.is_in_cheapest_hours}}.
So I have made the template binary_sensor "binary_sensor.pricenanalyzer_five_cheapest_tonight" with this template: