Ahoi
I've recently integrated a lot of my digital and physical estate into HA and had a great time.
I get emails occasionally telling me that I get free electricity. In these emails, there's a from time and a to time. The emails typically arrive up to 36 hours before the start of the free electricity event.
I can write a lil app to scrape my emails for one which tells me about such a session, and even likely extract the start and end time from it. The next problem is, though, I need to schedule my batteries and car to charge, as well as my hot tub to heat up at full chat.
Might be an awkward question, but is there a "right" way to do this? I'm thinking there might be some way to automate the creation of automations - I only need the actual controlling automation to run once per email (which I'd likely configure via webhook). I'm not entirely convinced that's the best way to go, though.