There is a discussion here about a framework article on the use of AI in HA.
And @NathanCu has made a start: