Smart Home Automation with OpenClaw
Connect OpenClaw to your smart home for natural-language control of lights, thermostats, and more.
Smart Home Integration
OpenClaw can become the brain of your smart home — controlling devices, automating routines, and monitoring your home through natural conversation.
Integration Options
Home Assistant API
If you run Home Assistant, OpenClaw can interact through its REST API:
---
name: home-control
description: Control smart home devices via Home Assistant
tools: [web_fetch, shell]
triggers: ["lights", "temperature", "thermostat", "home", "turn on", "turn off"]
---
# Home Control
Use the Home Assistant API to control devices.
API URL: http://homeassistant.local:8123/api
Token is stored in HOMEASSISTANT_TOKEN environment variable.
## Common Actions
- Turn lights on/off: POST /api/services/light/turn_on
- Set thermostat: POST /api/services/climate/set_temperature
- Lock doors: POST /api/services/lock/lock
- Check status: GET /api/states/{entity_id}
MQTT
For direct device control via MQTT:
---
name: mqtt-control
tools: [shell]
---
Use mosquitto_pub to send MQTT messages to smart devices.
Webhooks
Trigger automations via webhook:
- IFTTT integration
- Zapier workflows
- Custom webhook endpoints
Example Commands
Lighting
- "Turn on the living room lights"
- "Set bedroom lights to 50% brightness"
- "Turn off all lights" (good night routine)
- "Set the kitchen lights to warm white"
Climate
- "Set the thermostat to 72 degrees"
- "What's the current temperature?"
- "Turn on the AC"
- "Set eco mode for the night"
Security
- "Lock the front door"
- "Are all doors locked?"
- "Turn on the security cameras"
- "Is the garage door closed?"
Automation Routines
Good Morning
{
"schedule": "0 7 * * *",
"action": "Turn on kitchen lights to 80%, set thermostat to 72, and give me a morning briefing",
"channel": "whatsapp"
}
Good Night
{
"schedule": "0 23 * * *",
"action": "Turn off all lights, lock all doors, set thermostat to 68, and arm the security system",
"channel": "telegram"
}
Away Mode
"I'm leaving the house — activate away mode" (triggers: lights off, thermostat eco, doors locked, cameras on)
Safety
- Use confirmation for critical actions (door locks, security system)
- Set up alerts for unusual activity
- Keep device firmware updated
- Use strong passwords for all integrations
Ready for your AI assistant?
Get started with Claw for All today. No setup, no terminal, just sign up and go.
Get StartedRelated Guides
Building a Personal Productivity Assistant
Configure OpenClaw as your daily productivity companion — tasks, reminders, notes, and routines.
Creating a Customer Support Bot with OpenClaw
Build an AI-powered customer support bot that handles FAQs, tickets, and escalations.
Using OpenClaw as a Research Assistant
Set up OpenClaw for deep research — web search, source analysis, report generation, and fact-checking.