Good morning everyone, like many I am very interested in the issue of equipping our Home Assistant with some form of intelligence.
However, I must make a small premise: artificial intelligence does not really exist, there is a program that based on certain algorithms can detect events and deduce an action, but in this time it is not possible that the machine spontaneously performs actions.
So more than artificial intelligence, we talk about predicted automatisms.
I have read many people who have tried, with methods of certain interest, but then they were too complicated or the results were not satisfactory.
Some time ago I started to think about my own solution that I would like to share.
My concept of data modeling was based on the situations that triggered the change of state of a particular switch, for example.
( ex: prediction of switch_light_kitchen )
-
retrieve the history of all switch, binary_switch and person entities
-
look for when the state of the switch (switch_light_kitchen) changes and hang the snapshot of the situation in an object that has the state as key: in this way I have all the situations of when the switch was on or off
-
I examine the situations giving a “weight” to the entities that have had changes of state before the event, assigning a higher score if the change has happened in that moment
-
I create a data model based on the entities that have a greater “weight”, and then build a listener on that given entity, so I could calculate if “switch_light_kitchen” should be activated or not (it would send an event to HomeAssistant that was then managed)
That was my idea, but it was probably wrong.
What do you guys think?
Could this help in the evolution of Home Assistant ?
Bye!