Hi everyone, I’m looking for some help. I’m using Tibber, Bosch Smart Plugs and an EcoFlow battery. My goal is:
Home Assistant should check Tibber’s daily price curve every day at 00:05.
From that data, I want to identify the two price peaks of the day, with the condition that they must be at least 3 hours apart.
Example:
Peak 1 at 14:00 with 35 ct/kWh
Peak 2 at 20:00 with 31 ct/kWh
(Important: “Peak 1” just means the first peak in the day, not necessarily the highest one.)
After identifying the two peaks, HA should determine:
the cheapest price between 00:05 and Peak 1, and
the cheapest price between Peak 1 and Peak 2.
When these cheapest time slots occur, HA should switch on a Bosch plug to charge the EcoFlow battery.
When charging is finished (EcoFlow draws less than 20 W for 5 minutes), HA should switch off the charging plug and turn on a second plug that feeds power back into the house.
I only want to work with two peaks per day, nothing more.
I already installed the HACS Tibber integration and created a sensor that includes all 15-minute prices for the day. But after two days of trying to build the automations with ChatGPT, I basically lost my mind. For some reason, my “peak 1” and “peak 2” sensors remained empty and never got any values.
I’d appreciate any guidance or working examples on how to solve this properly.
and importan²: Both plugs are not allowed to be "on" at the same time. So when plug 1 (load the battery) starts, the other one has to be turned off automaticly.