Reasoning: Artificial intelligence applied to Home Assistant?

Hallo @Cao_Hoa and thank you for taking time to my reasoning!

Yes, exactly, the algorithmic tree decision is the best choice and I was just doing some experiments in these days.

But I have to be very careful not to fall in the probability “hole”, it is not my intention to turn on a switch just because there are many chances that in that condition you can turn it on.
Believe me, it’s very easy to fall into it!

Surely, as already said, the algorithmic tree is the best choice but I would also like to introduce some kind of reasoning so that it knows the possible consequences of its actions and knows how to correct them with or without the help of the user.

I went to see your suggestion that is the xgboost library that is also available in python both in standalone format (https://xgboost.readthedocs.io) and included in the Scikit library (scikit-learn: machine learning in Python — scikit-learn 1.0.2 documentation) but I didn’t understand what you mean by “based on the home-assistant_v2 file”.

In any case, I think it’s easier to start with using “DecisionTreeClassifier” also provided by SciKit - I see it as more practical and easier to understand.
What do you think?

I’ll be updating my GitHub space soon, maybe if you know Python you can help me out too!

I am very happy to talk with you.
i also want to include machine learning in homeassistant
home-assistant_v2.db which contains all the data and time and etc… of the homeassistant
i am running this to see what automation is running
and I’m writing quite a few packages

Hi Daniel, hi everybody.

I’ve been wondering the same idea for quite a while, but apart from being from North Italy too, i’m not any closer to a solution than you are. (Haven’t started yet, in fact, and work+family management won’t get any better soon, so not sure about the time i can invest in helping you but pretty sure i won’t get anywhere alone)

Here’s my problem:
Got a VMC machine in a big house. What’s bugging me is the inefficiency of the system (3 speeds on central fans, no IOT, no air quality sampling, no single room control) and what’s worst outside air quality sucks big time and even at minimum speed it even drags too much humidity from the air.

My point would be to get rid of thoose coaxial noisy fans, using single fans for room intakes based on air quality and, above all, limit the exchange with outside based on delta temperature, delta humidity, and pollution level.

Can I achive that just programming conditions. Obviously yes. Will it be any fun ? Well no, and the problem seeme to be perfecly matching a ML+AI application. Am I right ?

Cheers

1 Like

Hi Carlo!
Well, it’s a pleasure to meet you, maybe if you want we can have a chat in private (in Italian of course!).

I read your message, even if I don’t know what a VMC machine is but I can imagine.
I also understood your situation which is really very interesting and very practical.

Let’s say that, properly configured, even the simple HASS can give you satisfaction in this sense, of course you have to take into account many factors and conditions.
It could certainly be an excellent application for the dream I have in mind, that based on its own experience and reasoning would choose the best action to perform depending on the situation.

I recently published the description of my dream on my Github, I still have to finish writing it but what I will do soon.

If you want you can follow my project directly there.
I’m waiting for your private contact, if you like!

Ciao da Bolzano :slight_smile:

hi dadaloop82 i saw you uploaded to github
and I have git on your instructions
I do not receive the file Open this configuration file and modify it according to the instructions in the file

[appDeamonFolder]/apps/MyHomeSmart-HASS-AppDeamon/apps.yaml

Hello! I have not uploaded the project yet, I will do it shortly :grin: I have to start it, for now I have only written the documentation :stuck_out_tongue_closed_eyes:

thanks dadaloop82
Daniel a lot . I’ll be waiting and I’m glad to see your project go so fast

Good morning everyone,

in these days I invested a lot of time to write my whole idea on my gitHub repository, I hope I did something nice.

I also rethought my idea and redid part of the operation diagram, it’s not complete yet, but half of the work is done.

I’ve also started the programming part, I’ve only laid the groundwork for now, so there’s nothing usable yet.

If you are interested in the project I ask you to read my idea on my repository and possibly help me or support me in any way.

Thank you!

Good morning

I just updated to your new version and got this error
please help me

Hi Cao_Hoa!

I ask you to use the github repository next time for any communication about the project. Here we try to keep only the information at a general level, eventually I will write the achievements.

Anyway the project is still in development, currently I have to look for the way to identify the cause->effect condition but I think I’m close to it.

It is currently NOT working, but I’m glad you are keeping up with the developments.

I will update the project readme for any news!
Thanks!

hello gameloop 82 I’m glad to see you reply and update the project I will always follow and accompany your project I wish you a good day

Hi @dadaloop82 ,

I am actually working on a very similar idea but instead to create this as an add-on for easier use. Would be interesting to perhaps sync on this and see how we can help each other!

Regards,
Chris

Dearest Chris!

I’m really happy that you too have tried your hand at this arduous undertaking !
Is it possible to view your project in a Github ?

I started recently and for now I’m still at data collection and data normalization, that is what comes from the sensors.
The last thing I have done is the optimization of saving numerical data, which are grouped in a smart way by distinguishing them by importance and frequency.

You can see my work on my github (see signature)

I’m on my own and getting by in the (little) spare time and I would be honored to have your help, suggestion or share experiences with you.

I’ll be waiting for you, to continue our discussion, directly on the project github!
See you soon!
Daniel

I’d like to sync too :slight_smile: I am data scientist with a background in computer vision. For my next project I need to get into time-series ML. Will be happy to help

Are you aware of Motion AI - Detection and classification of entities ? I read about it and it sounds interesting, definitely contains AI concepts, may be relevant.

@dadaloop82 here’s my code GitHub - lcmchris/thesillyhome-addon-repo: add on repo for thesillyhome
Spent some time cleaning it up, feel free to try the add-on and give me comments + suggestions!

Hi Nova!

I have read and carefully examined your repository and it was really very interesting, I can see that you have a great experience in ML !

Since we have the same goal I would like to talk to you privately to see if we can collaborate together and if I can use some of your code, even if it is already explicitly stated.
Or join forces, ideas and projects.

You can contact me on Discord dadaloop82#3319 or wherever you prefer.
Hope to hear from you soon
Daniel

Have added you on discord!
Would be awesome to collaborate in some way on this. Having someone to validate potential features or new models would make this much easier :slight_smile:
Another aspect is potentially we could start sharing data → or one better setup a centralised db on cloud where all HA users to dump their events on easily. I have a theory that a centralised model on human behaviour in general could help better predict individual behaviour.

Using AI in Home Assistant is interesting, but I don’t really understand what “Sillyhome” currently does.

For me, an initial AI in Home Assistant would be something that “observes and suggests”, essentially looking at what you are doing and trying to help you improve your routines and automations.

Another (simple?) AI helper would be a “syntax checker” since yaml appears to be very demanding when it comes to the exact indentation and placement of brackets and so on.

Just my unqualified opinion though. I am always dreaming about something that gives people without coding or scripting skills the ability to create complex automations…:see_no_evil:

Hi Daniel,
you are still to develop something to integrate AI and ML into HA?
I’m not expert in developing but I’m playing with it and at work we heavily begin to develop and use AI.
Maybe we can have a chat and if also Nova with his Silly Home (that is already in advanced status but as I see the project is in pause), I think we can do something interesting.