AI or Machine Learning HVAC Automation

Hi everyone, this summer i installed a photovoltaic system and, as electricity and gas prices are increasing, i would like to take advantage of that during the winter using my air conditioning system with integrated heat pumps.
I have 5 Daikin splits and the idea is to use them instead of my radiators to save some gas and take advantage of extra power during the day (as usually the house is empty during the day since we are all at school/work).
I would like to use them only in self-consumption to maximize saving and the ideal would be to implement something like Netatmo/Nest etc like, for example, if i need the house warm at 1 PM the HVAC system knows when to switch on based on previous days and tests and based on actual temperature of the room.
The ideal would be also to implement a check on who is home to heat only the rooms that are actually populated.
I tried writing a simple automation but it is very dumb and not very satisfying: i have at least 350W available (so the electricity meter reads “-350W”) i can switch one split (that consumes about 250W when starting and 100W when in the right temperature), it then stops if the electricity meter reads > -350W for 25 minutes or >500W for 5 minutes.
This automation is actually working fine but i’m not sure on how to implement that on 5 different splits… it then does not cover presence detection, it is quite empyrical… it has several defects in the end.
I tried searching for something pre-built maybe based on AI or Machine Learning and i found homsai (here’s the link): an AI based integration that should do exactly what i was looking for.
In reality it is still a beta, it has several problems, it does not work, it gives me continuos errors and so i’m not using that at the moment…
Do you know any alternative to that program, do you have a similar automation written in your configuration or can you suggest me some way to implement an AI/Machine Learning software into my configuration to try improve my dumb automation?
Thanks

Hello. Have you find anything about this?
I have water underfloor heating and I’m trying to find something clever that, based on external temperature and room temps (decay rate, etc), turns on heating at the right time.
This heating method has a big inertia and if heater turn on when thermostat hits below (e.g.) 20°, the room might actually hit 18° before it starts to go up.