Use Cases & Recipes
🏠

Smart Home Automation with OpenClaw

Connect OpenClaw to your smart home for natural-language control of lights, thermostats, and more.

5 分で読める|
smart homehome automationiot

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
smart homehome automationiothome assistantsmart devices

AIアシスタントの準備はできたしたか

今日からClaw for Allを始めたしょう。セットアップ䞍芁、タヌミナル䞍芁、登録するだけですぐ䜿えたす。

はじめる

関連ガむド