Build and learn
March 27, 2025

5 AI-powered projects to automate your smart home

Transform your smart home with AI-powered automation: air quality control, intelligent lighting, advanced security, custom models, and smart plant care.
Joyce Lin
Head of Developer Relations

Most smart home setups stop at basic convenience, like turning lights on/off, setting a thermostat schedule, or using voice commands. But modern smart homes go beyond explicitly-programmed automation to anticipate your needs.

At SCaLE (Southern California Linux Expo), Viam’s head of DevRel Joyce Lin spoke in the Free and Open Source Software track and posed a question to the audience: “Are we really making the most of smart home technology?” 

Here are five beginner-friendly ways to make your home smarter, safer, and more efficient using AI, sensors, and Viam.

1. Automate air quality responses

Basic setup: You check an air quality monitor manually or receive a notification about unhealthy levels.
Smarter setup: Your home detects poor air quality and fixes it automatically.

How? Use CO2, PM2.5, or VOC sensors to monitor when values reach a threshold to trigger actuation that happens whether you’re at home or not.

  • Turn on an exhaust fan when CO2 is high.
  • Send an alert and open a smart window for fresh air.
  • Adjust your HVAC system for better circulation.

Follow this step-by-step codelab to automate your own air filtration system with air quality sensors using a Raspberry Pi, smart plug, and box fan.

Visualization of air quality sensor data showing PM2.5 particulate matter levels on a Raspberry Pi dashboard, with a box fan ready to activate for air filtration
Visualize spikes in air quality over time; Use a Raspberry Pi to measure PM2.5 particulate matter to trigger an air filtration system
LD2410C mmWave sensor mounted with a status indicator light, demonstrating real-time human presence detection in a home environment, showing both static and moving detection capabilities

2. Smarter lights with mmWave presence detection

Basic setup: Use PIR motion sensors turn lights on/off based on movement which can lead to false positives, like pets or heating vents triggering a detection, and false negatives, like lights turning off when someone is sitting still. ✅ Smarter setup: Use millimeter wave (mmWave) sensors to detect human presence enabling precise, adaptive automation.

Use mmWave sensors to ensure smarter automation by detecting both static and moving presence, eliminating false triggers and improving energy efficiency. 

  • Enable smarter lights that stay on when you're reading, working, or watching TV.
  • Save energy by turning lights off when you leave a room.
  • Monitor your sleep and detect falls.

Follow this step-by-step codelab to build your own presence detector with an mmwave sensor.

 LD2410C mmwave sensor to detect presence
LD2410C mmwave sensor to detect presence
Visual indicator light to show the status of moving or static detections using an mmwave sensor
Visual indicator light to show the status of moving or static detections using an mmwave sensor

3. Enhance security with smarter detection using computer vision

Basic setup: A traditional motion sensor triggers an alert for anything.
Smarter setup: AI can distinguish pets, humans, and unknown visitors.

Use computer vision to differentiate between objects that you actually care about.

  • Ignore pets while detecting humans.
  • Trigger an alarm only for unknown faces.
  • Turn on outdoor lights and record footage when unusual visitors are detected.

Follow this step-by-step codelab to set up people detection notifications in Home Assistant using Computer Vision.

Enabling smart notifications in Home Assistant with a Viam vision service
Enable smart notifications in Home Assistant with a Viam vision service
Configuring a notification in Home Assistant using the Viam integration
Configure a notification in Home Assistant using the Viam integration

Sign up

4. Train your own custom models for easy snacking

Basic setup: You’re browsing open-source registries for existing models that kind of do what you want them to do.
Smarter setup: Train your own AI models for improved accuracy and customization.

How?

  • Refill a snack bowl when it’s empty.
  • Dispense treats for humans or pets when a certain pose is detected.
  • Log patterns in snack consumption to predict when inventory should be replenished.

Follow this step-by-step codelab to build a smart snack dispenser with CV.

Training a model in Viam with a dataset
rain your own model with a dataset
A photo of the pre existing snack dispenser used to make it smart using a Raspberry Pi and Viam
Retrofit an existing snack dispenser to make it smart using a Raspberry Pi

5. Optimize plant care with a local LLM and machine learning

Basic setup: A water pump that waters a plant based only on soil moisture levels.
Smarter setup: Use speech-to-text and a local LLM to get personalized plant care recommendations.

Instead of a one-size-fits-all approach, AI-powered plant care adapts to each plant’s unique needs, optimizing growth and reducing waste. 

  • Identify plants automatically with an AI model to ensure species-specific care.
  • Track soil conditions in real time to detect early signs of overwatering, dehydration, or nutrient deficiencies.
  • Analyze water usage patterns to predict potential environmental issues and adjust irrigation accordingly. 
Succulent plant connected to a Raspberry Pi with machine learning setup, demonstrating AI-powered plant care monitoring and automated plant health tracking
Use speech-to-text and Computer Vision with a local LLM to ask about the proper plant care

Follow this step-by-step tutorial to use a local LLM and machine learning for plant care.

Take your smart home to the next level

Modern smart homes should go beyond simple, pre-programmed commands. They can be multi-modal, integrating input from various sensors and seamlessly triggering multiple smart devices to anticipate your needs rather than just react. 

When designing your home automation setup, there are countless possibilities, from cloud-based, local, or hybrid approaches. Choose what best fits your needs.

Viam home automation system architecture diagram showing interconnections between sensors, AI, computer, software platforms, and actuators with cloud integration
A multitude of choices exist when architecting your home automation solutions for cloud, local, and hybrid approaches

Try one of these five upgrades and start making your smart home actually smart. Got a cool automation setup? Share it with us in the Viam Discord server in the #built-on-viam channel.

twitter iconfacebook iconlinkedin iconreddit icon

Find us at our next event

Apr 3, 2025
Apr 3, 2025
,

DotJS

In Person
Paris, France
JavaScript developers are invited to join Viam in Paris to learn how to overcome challenges of working with code in the physical world.
Join Us
Apr 15, 2025
Apr 15, 2025
,
03:00-04:00 PM EST

LIVESTREAM: Build a self-checkout with computer vision

Virtual
Build a real-time people detector using computer vision and a piezo buzzer with Adrienne and Nick from Viam's DevRel team in this hands-on livestream.
Watch live!
Apr 17, 2025
Apr 17, 2025
,
06:30 - 09:30 PM EST

NY Hardware April 2025 MeetUp

In Person
1900 Broadway Floor 6 New York, NY
Join us at the Viam office for the next NY Hardware Meetup! Viam Product Manager, Esha Maharishi, will be doing a live demo, and there will be plenty of time to connect with fellow hardware enthusiasts. Whether you're deep in the industry or just curious, come by for great conversations, hands-on tech, and free food and drinks!
Sign Up