In recent years, the concept of IoT - AI (Internet of Things - artificial intelligence) has had a strong development and is currently being used in many different fields such as smart home, telemedicine, environment, industry, agriculture, traffic, etc. Smart home (SH) is one of the important applications of the IoT model, aiming to integrate home automation solutions. With IoT - AI, allowing objects and devices in the home to be connected to the Internet makes it possible for users to monitor and control them remotely. In this article we will learn about using AI to control smart home devices.