AI can do a lot but it can also get a lot wrong.
If you use batteries with a balcony power plant, you can control them according to your needs. Can Fritz SmartEnergy 250 ...
I've almost retired Google entirely in my home.