🦞OpenClaw Guide
← All Integrations
🏠

Home Assistant

Medium⏱️ 15-20 minutes

Control your smart home with AI

The Fastest Way: HeraClaw Cloud ⚡

Skip the Home Assistant long-lived tokens, webhook configuration, and network setup. HeraClaw Cloud comes with Home Assistant integration pre-configured and ready to connect in 60 seconds.

Why HeraClaw Cloud for Home Assistant?

Ready in 60 seconds - No token generation, no webhook URLs, no network configuration ✅ Secure tunnel included - Access your home network from anywhere without port forwarding ✅ Always connected - We maintain the connection even when your IP changes ✅ Professional support - If Home Assistant updates break things, we fix it ✅ Mobile-ready - Control your home from any device, anywhere ✅ Zero maintenance - No certificate renewals, no firewall rules

How it works:

  1. Sign up at cloud.getopenclaw.ai (takes 60 seconds)
  2. Go to Integrations → Home Assistant
  3. Click 'Connect Home Assistant'
  4. Enter your Home Assistant URL and access token
  5. Done! Control your smart home with AI

Get Started: Start with HeraClaw Cloud →


Complete Guide to OpenClaw + Home Assistant

Home Assistant is the open-source smart home platform powering millions of homes worldwide. With 2000+ device integrations, it's the brain of the modern connected home. OpenClaw's integration brings natural language control to your entire smart home ecosystem, transforming "open the Home Assistant app, navigate to lights, toggle the switch" into simply saying "turn on the living room lights."

Whether you're a homelab enthusiast with a Raspberry Pi running 50 devices or a smart home beginner with a few Philips Hue bulbs, this guide covers everything from basic light control to advanced automation scenarios.

Why OpenClaw for Smart Home Control?

The Reddit homelab community loves OpenClaw - one viral post showed a Mac Mini k3s cluster running OpenClaw to control an entire smart home. Here's why the combination is powerful:

1. Natural Language Instead of App Navigation

Traditional smart home control:

  1. Open Home Assistant app
  2. Wait for it to load
  3. Navigate to Lights → Living Room → Floor Lamp
  4. Toggle the switch
  5. Navigate to Climate → Thermostat
  6. Adjust temperature

With OpenClaw:

bash
You: Turn on the living room lights and set the temperature to 68°FAssistant: ✓ Living room lights turned on✓ Thermostat set to 68°FAnything else?

Total time: 3 seconds vs 30 seconds

2. Context-Aware Automation

OpenClaw understands context that traditional automations miss:

bash
"Good night"→ Locks all doors, turns off lights, sets thermostat to 65°F, arms security"Movie time"→ Dims living room lights to 20%, closes blinds, turns on TV, sets climate to comfortable"I'm leaving"→ Checks if windows are open (warns if yes), locks doors, sets away mode, adjusts thermostat

No complex YAML automations needed - just describe what you want.

3. Cross-Platform Smart Home Control

Control your home from:

  • Telegram - Message your assistant from your phone
  • Discord - Control home from your Discord server
  • iMessage - Use Apple Messages on Mac/iPhone
  • Slack - Control from your work Slack workspace
  • WhatsApp - International users' preferred platform

One assistant, every platform.

4. Voice-Like Control, Better Privacy

Alexa and Google Home require:

  • Cloud services (privacy concerns)
  • Wake words (always listening)
  • Internet connection (fails when offline)
  • Specific phrasing ("Alexa, ask Home Assistant to...")

OpenClaw + Home Assistant:

  • ✅ Fully local (optional)
  • ✅ No wake words (message-based)
  • ✅ Works offline (if self-hosted)
  • ✅ Natural phrasing (just say what you want)

5. Smart Queries, Not Just Commands

Go beyond "turn on/off":

bash
"Which windows are open?"→ 2 windows open: Kitchen window, Bedroom window (since 2:30pm)"What's the temperature in each room?"→ Living room: 72°F, Bedroom: 68°F, Kitchen: 74°F (stove usage detected)"Show me today's energy usage"→ Total: 23.4 kWh   - HVAC: 12.1 kWh (52%)   - Appliances: 8.3 kWh (35%)   - Lighting: 3.0 kWh (13%)   Cost estimate: $2.81 at current rates"Did anyone come home while I was gone?"→ Yes, Sarah arrived at 3:47 PM (person.sarah detected)   - Garage door opened: 3:47 PM   - Front door unlocked: 3:48 PM   - Living room motion: 3:50 PM

6. Advanced Automation Triggers

Combine Home Assistant with other integrations:

bash
When I get an email from "security@company.com"→ Flash living room lights red and send notificationWhen my calendar shows "Work from home"→ Keep lights off in the morning (don't wake partner)When temperature drops below 40°F→ Turn on heated driveway and send reminder to bring in plantsWhen package delivered (doorbell camera detects)→ Send image to Telegram and log in Notion

Core Capabilities

Device Control

Lights

bash
"Turn on the living room lights"→ light.living_room_main turned on"Set bedroom lights to 30% brightness"→ light.bedroom set to 30%"Make the kitchen lights warmer"→ light.kitchen color temperature adjusted (warm white)"Turn off all lights upstairs"→ 5 lights turned off (bedroom, bathroom, office, hallway, closet)"Set living room to sunset scene"→ Scene activated: Warm orange, 40% brightness

Supports:

  • On/off control
  • Brightness (1-100%)
  • Color temperature (warm/cool white)
  • RGB colors ("make it blue", "set to red")
  • Scenes (predefined configurations)
  • Groups ("all upstairs lights", "first floor")

Climate Control

bash
"Set thermostat to 72 degrees"→ climate.thermostat target temperature: 68°F → 72°F"What's the current temperature?"→ Living room: 70°F (thermostat target: 68°F)   Outside: 45°F (weather station)"Turn on the AC"→ climate.thermostat mode: heat → cool"Set bedroom to heat mode, 65 degrees"→ climate.bedroom_thermostat: cool → heat, target 65°F

Supports:

  • Temperature control
  • Mode changes (heat/cool/auto/off)
  • Fan speed
  • Humidity control (if supported by device)
  • Multi-zone systems

Locks and Security

bash
"Is the front door locked?"→ Yes, lock.front_door is locked (since 10:32 PM)"Lock all doors"→ Locked 3 doors: front_door, back_door, garage_door"Unlock the garage"→ Confirmation required: Unlock lock.garage_door?   Reply 'yes' to confirm.You: yesAssistant: ✓ lock.garage_door unlocked"Arm the security system in away mode"→ alarm_control_panel.home set to armed_away

Security features:

  • Lock/unlock with confirmation (configurable)
  • Status checks (locked/unlocked, when changed)
  • Security system modes (home/away/night/disarmed)
  • Door/window sensors
  • Motion detection status

Switches and Outlets

bash
"Turn off the coffee maker"→ switch.coffee_maker turned off"Is the porch light on?"→ Yes, switch.porch_light is on (turned on automatically at sunset)"Turn on the Christmas lights"→ switch.christmas_lights turned on

Sensors and Monitoring

bash
"What's the air quality?"→ Air Quality Index: 47 (Good)   CO2: 842 ppm (slightly elevated, consider ventilation)   PM2.5: 8 µg/m³ (excellent)"Is there motion in the living room?"→ No motion detected in living_room_motion for 23 minutes"Check the humidity"→ Indoor humidity: 45% (comfortable range)   Outdoor humidity: 68%"Battery status for all sensors"→ 8 battery-powered devices:   - 6 devices: 80-100% (good)   - 2 devices: <20% (need replacement soon)     • door_sensor_garage: 18%     • window_sensor_bedroom: 12%

Media and Entertainment

bash
"Turn on the TV"→ media_player.living_room_tv turned on"Play jazz music in the kitchen"→ media_player.kitchen_speaker playing Jazz playlist"What's playing in the living room?"→ Spotify: "Bohemian Rhapsody" by Queen   Volume: 40%"Pause all media players"→ Paused 3 players: living_room_tv, kitchen_speaker, bedroom_speaker

Covers (Blinds, Shades, Garage Doors)

bash
"Open the living room blinds"→ cover.living_room_blinds opening...   ✓ Opened"Close all shades"→ Closed 5 shades (living room, bedroom, office, kitchen, dining)"Set bedroom blinds to 50%"→ cover.bedroom_blinds position: 50%"Is the garage door open?"→ Yes, cover.garage_door has been open for 37 minutes   ⚠️ Unusual - normally closes within 10 minutes

Scenes and Automations

Predefined Scenes

bash
"Activate movie night scene"→ Running scene.movie_night:   ✓ Living room lights → 20% warm white   ✓ Closed living room blinds   ✓ TV turned on   ✓ Thermostat → 70°F   ✓ Disabled motion-activated lights"Good morning routine"→ Running scene.good_morning:   ✓ Bedroom lights → gradual 0% to 70% over 10 min   ✓ Thermostat → 72°F   ✓ Started coffee maker   ✓ Opened bedroom blinds   ✓ Kitchen news display activated

Trigger Automations

bash
"Run the bedtime automation"→ Triggering automation.bedtime:   ✓ Locked all doors   ✓ Turned off all lights (except night lights)   ✓ Set thermostat to 65°F   ✓ Armed security (home mode)   ✓ Closed all shades   ✓ Started white noise in bedroom

Create Simple Automations

bash
You: Every night at sunset, turn on the porch lightsAssistant: I've created that automation in Home Assistant:Trigger: Sun setsAction: Turn on switch.porch_lightMode: Single (only one instance runs)Automation entity: automation.porch_light_at_sunsetActive now. Want to test it?

Smart Queries and Analytics

Energy Monitoring

bash
"How much power am I using right now?"→ Current consumption: 3.2 kW   Top consumers:   - HVAC: 1.8 kW   - Water heater: 0.9 kW   - Refrigerator: 0.3 kW   - Other: 0.2 kW"Energy usage this week vs last week"→ This week: 156.4 kWh   Last week: 172.8 kWh   Savings: 16.4 kWh (9.5% reduction)   Estimated cost savings: $1.97"Which devices use the most energy?"→ Top 5 energy consumers (this month):   1. HVAC: 342 kWh (48%)   2. Water heater: 198 kWh (28%)   3. Washer/Dryer: 87 kWh (12%)   4. Refrigerator: 54 kWh (8%)   5. Lighting: 29 kWh (4%)

Presence Detection

bash
"Who's home?"→ 2 people home:   - You (arrived 6:32 PM via garage)   - Sarah (arrived 7:15 PM via front door)"When did Sarah leave this morning?"→ person.sarah departed at 8:23 AM   - Garage door opened: 8:22 AM   - Motion stopped in house: 8:25 AM   - Phone left WiFi: 8:24 AM"Track when people arrive and leave today"→ Today's activity:   8:23 AM: Sarah left   8:47 AM: You left   4:32 PM: You arrived   7:15 PM: Sarah arrived   Currently: Both home

Environmental Monitoring

bash
"Air quality report"→ Indoor air quality:   - CO2: 687 ppm (good - well ventilated)   - PM2.5: 5 µg/m³ (excellent)   - Humidity: 42% (comfortable)   - Temperature: 71°F      Outdoor air quality:   - AQI: 52 (Moderate)   - Pollen: High (ragweed season)      Recommendation: Indoor air quality is excellent. Keep windows closed due to high outdoor pollen."Temperature in every room"→ Room temperatures:   Living room: 72°F ✓ (target: 72°F)   Bedroom: 68°F ✓ (target: 68°F)   Kitchen: 75°F ⚠️ (higher due to cooking)   Bathroom: 70°F   Office: 71°F   Basement: 64°F ❄️ (below target 68°F)

Device Health

bash
"Any devices offline?"→ 2 devices unavailable:   - sensor.basement_temperature (offline 3 hours)   - light.garage_exterior (offline 12 minutes)      Likely causes:   - Basement sensor: Battery dead (last reported 8%)   - Garage light: Possible WiFi issue (other garage devices ok)"Battery levels for all devices"→ Battery-powered devices:      ✅ Good (80-100%): 12 devices   ⚠️ Medium (20-79%): 5 devices   🔋 Low (<20%): 3 devices      Replace soon:   - Front door sensor: 18%   - Bedroom window sensor: 12%   - Motion sensor garage: 9%

Real-World Use Cases

1. Morning Routine Automation

Scenario: You want a gradual wake-up experience with smart home automation, but don't want to configure complex YAML.

Traditional approach:

  • Write YAML automation
  • Configure sun trigger or time trigger
  • Set up light sequences
  • Test and debug
  • Takes 30-60 minutes

OpenClaw approach:

bash
You: Create a morning routine that starts 30 minutes before my first calendar event. Gradually turn on bedroom lights, start coffee maker at 50% brightness, open blinds halfway, and set thermostat to 72°F.Assistant: I've created your morning routine automation.Trigger: 30 minutes before first calendar event (checking calendar.your_calendar)Actions:1. Bedroom lights: Gradual fade from 0% to 50% over 10 minutes2. Coffee maker: Turn on (switch.coffee_maker)3. Bedroom blinds: Open to 50% (cover.bedroom_blinds)4. Thermostat: Set to 72°F (climate.main_thermostat)Automation ID: automation.morning_routine_dynamicActive now. Want to test it with a manual trigger?You: Yes, test itAssistant: Running test...✓ Bedroom lights fading in (will take 10 min in real scenario)✓ Coffee maker started✓ Blinds opening to 50%✓ Thermostat adjusting to 72°FTest complete. Tomorrow it will trigger automatically based on your calendar.

Impact:

  • Setup time: 2 minutes vs 30-60 minutes
  • No YAML editing
  • Calendar integration automatic
  • Easy to modify (just ask)

2. Security and Safety Monitoring

Scenario: You travel frequently and want to know your home is secure. You want alerts for unusual events.

OpenClaw workflow:

bash
You: I'm leaving for a week. Set the house to away mode and notify me of anything unusual.Assistant: Setting away mode...✓ Armed security system (away mode)✓ Locked all doors (front, back, garage)✓ Closed all windows (2 were open - kitchen, bedroom)✓ Set thermostat to 62°F (energy saving)✓ Turned off all lights✓ Enabled unusual activity alerts✓ Started camera recording on motionMonitoring enabled for:- Door/window sensors (will alert on any open)- Motion detection (will alert with camera snapshot)- Water leak sensors- Smoke/CO detectors- Temperature extremes (<40°F or >85°F)All alerts will send to Telegram with images. Have a great trip![3 days later...]Assistant: 🚨 Unusual activity detected:Front door unlocked at 2:47 PM- Person detected: sarah (recognized)- Motion in living room, kitchen- Security system disarmed with valid codeThis appears normal (Sarah's scheduled visit to water plants). Confirm this was expected?You: Yes, that's expectedAssistant: ✓ Noted. Suppressing similar alerts for sarah until you return.

Impact:

  • Peace of mind while traveling
  • Intelligent alerts (not just "door opened" spam)
  • Person recognition integration
  • Context-aware notifications

3. Energy Optimization

Scenario: Your electricity bill is high. You want to identify energy waste and optimize usage.

OpenClaw analysis:

bash
You: Why is my electricity bill so high?Assistant: Analyzing your energy usage from the past month...**Total consumption:** 847 kWh (34% above regional average for similar homes)**Top energy consumers:**1. **HVAC: 412 kWh (49%)**   - Running 18 hours/day average   - Inefficiency detected: Thermostat set to 75°F when nobody home   - Recommendation: Set to 68°F when away (save ~$25/month)2. **Water heater: 243 kWh (29%)**   - Heating to 140°F (higher than needed)   - Running during peak rate hours (2-8 PM)   - Recommendation: Lower to 120°F, shift heating to off-peak (save ~$18/month)3. **Phantom loads: 98 kWh (12%)**   - Devices consuming power when "off"   - Top offenders:     • Entertainment center: 32 kWh/month standby     • Office equipment: 28 kWh/month     • Kitchen appliances: 22 kWh/month   - Recommendation: Use smart plugs to cut power when not in use (save ~$12/month)4. **Pool pump: 67 kWh (8%)**   - Running 12 hours/day   - Current schedule: 24/7 low speed   - Recommendation: Run 6 hours/day during off-peak (save ~$8/month)**Total savings opportunity: ~$63/month ($756/year)**Want me to implement these optimizations automatically?You: Yes, implement all of themAssistant: Implementing energy optimizations...✓ Created automation: Set thermostat to 68°F when nobody home✓ Lowered water heater to 120°F✓ Created automation: Heat water during off-peak hours (10 PM - 6 AM)✓ Created automation: Cut power to entertainment center when TV off for >10 minutes✓ Created automation: Cut power to office equipment at 7 PM on weekdays✓ Updated pool pump schedule: 6 hours/day, 11 PM - 5 AM (off-peak)All changes active. I'll monitor energy usage and report back in 1 week to confirm savings.[1 week later...]Assistant: Energy optimization update:**This week:** 164 kWh**Last week (before changes):** 212 kWh**Savings:** 48 kWh (23% reduction)**Estimated monthly savings:** $58On track to hit the $63/month savings target. HVAC optimization is working particularly well (46% reduction in HVAC usage while maintaining comfort).

Impact:

  • Identified $756/year in savings
  • Implemented optimizations in minutes
  • Automated monitoring and reporting
  • No manual thermostat adjustments needed

4. Elderly Care and Safety

Scenario: You have an elderly parent living alone. You want to monitor their safety without being intrusive.

OpenClaw solution:

bash
You: Set up safety monitoring for my mom's house. Alert me if there's no activity for 12 hours, or if there's unusual nighttime activity.Assistant: Setting up safety monitoring for your mom's home...✓ Created automation: Alert if no motion detected for 12 hours✓ Created automation: Alert if bathroom motion between 2 AM - 5 AM (fall risk hours)✓ Created automation: Alert if stove left on >30 minutes✓ Created automation: Alert if front door opens between 10 PM - 6 AM✓ Created automation: Daily check-in reminder at 9 AMAll alerts will send to your Telegram with context.Additional monitoring:- Medication reminder (if configured in calendar)- Temperature extremes (HVAC failure detection)- Water leak detection- Smoke/CO alarm statusMonitoring active. Privacy-preserving (motion only, no cameras unless configured).[A few days later...]Assistant: ⚠️ Safety check:No motion detected in your mom's home for 14 hours.Last activity:- Living room motion: Yesterday 7:32 PM- Bedroom motion: Yesterday 9:18 PM- Front door: Closed since yesterday 4:15 PM- Bathroom: Last used 6:47 AM todayUnusual pattern - typical morning activity (kitchen, bathroom) not detected.Recommended action: Call to check in, or ask me to check recent activity patterns.You: Check recent patternsAssistant: Analyzing your mom's activity patterns (last 30 days)...**Typical daily pattern:**- Bedroom motion: 6:30-7:00 AM (wake up)- Kitchen motion: 7:00-7:30 AM (breakfast)- Living room motion: Throughout day- Bathroom: 6-8 times/day**Today's pattern:**- Bedroom motion: 6:47 AM (slightly later, but normal)- Kitchen motion: None detected ⚠️- Living room motion: None detected ⚠️- Bathroom: Only at 6:47 AM ⚠️**Concerning indicators:**- No kitchen activity (usually makes breakfast)- No living room activity (usually reads morning paper 8-9 AM)- Front door hasn't opened (usually gets mail by noon)**Recommendation:** This is unusual. Call immediately to check in.You: Thanks, I'll call her now[10 minutes later...]You: She's okay, just feeling under the weather and resting in bed. Can you monitor more closely today and alert me if she doesn't get up by 3 PM?Assistant: ✓ Noted: Your mom is resting (feeling unwell)✓ Created temporary automation: Alert if no living room or kitchen motion by 3 PM✓ Monitoring more frequently (every 2 hours instead of 12)✓ Will send you activity updates at noon and 3 PMI'll also alert you if:- Bathroom motion stops (potential medical issue)- Any fall detection (sudden motion sensor changes)- Temperature gets uncomfortable (<65°F or >78°F)Hope she feels better soon!

Impact:

  • Early detection of potential issues
  • Privacy-preserving monitoring (motion sensors only)
  • Pattern analysis identifies anomalies
  • Reduces caregiver anxiety

5. Vacation Mode - Simulated Presence

Scenario: You're on vacation for 2 weeks. You want the home to look occupied (security) while saving energy.

OpenClaw vacation mode:

bash
You: I'm going on vacation for 2 weeks starting tomorrow. Set up vacation mode - make it look like someone's home but save energy.Assistant: Setting up vacation mode (2 weeks: April 10-24)...**Security (simulated presence):**✓ Automated light schedule:  - Living room lights: On 6 PM - 11 PM (varies ±20 min for realism)  - Bedroom lights: On 9 PM - 10:30 PM  - Kitchen lights: On 7 AM - 8 AM, 6 PM - 8 PM  - Random room lights throughout evening✓ Blinds: Open 7 AM, close 8 PM (simulates daily routine)✓ TV: Turn on 7 PM - 10 PM (varies) for light/sound✓ Security system: Armed away mode✓ Cameras: Record on motion, send alerts**Energy saving:**✓ Thermostat: Set to 62°F (heating) / 78°F (cooling)✓ Water heater: Vacation mode (minimal heating)✓ Smart plugs: Off for non-essential devices✓ Pool pump: Minimum required hours**Monitoring:**✓ Alert on:  - Any door/window opened  - Water leaks  - Smoke/CO alarms  - Temperature extremes (<40°F or >90°F)  - Humidity >70% (mold risk)  - Power outage >30 minutes**Maintenance:**✓ If person detected (neighbor watering plants):  - Temporarily disable alerts for known people  - Log visits**Mail/package handling:**✓ Alert on doorbell (package delivery)✓ Capture camera images✓ Notify via TelegramVacation mode active starting tomorrow 6 AM. When you return, just say "I'm home" to disable.Estimated energy savings: ~$85 vs normal occupancy.Have a great vacation![Day 5 of vacation...]Assistant: 📸 Doorbell activity:Package delivered at 2:34 PM- Delivery service: Amazon- Package placed on porch- Image: [camera snapshot]All normal. Package appears secure on covered porch.[Day 9 of vacation...]Assistant: 🚨 Alert: Water leak detected!Sensor: Basement water leak sensorLocation: Near water heaterDetected: 11:47 AMUrgent - recommend calling neighbor or maintenance to check immediately.Also detected:- Humidity rising in basement (now 73%, was 45%)- Temperature normal- No other sensors triggeredLikely source: Water heater or nearby plumbing. Need immediate attention.You: Can you turn off the main water valve?Assistant: Checking water valve control...Unfortunately, no smart water valve is configured in your Home Assistant. I can only alert, not shut off water.Recommendations:1. Call neighbor/friend to manually shut off main water valve2. Call plumber for emergency service3. If you have home insurance, consider calling themWant me to draft texts/emails to send to your contacts?You: Yes, text my neighbor Mike about the leakAssistant: [Drafted message to Mike via integrated SMS/Telegram...]

Impact:

  • Realistic simulated presence (deters burglars)
  • $85 energy savings over 2 weeks
  • Early leak detection prevented major water damage
  • Peace of mind while traveling

6. Homelab/Tech Enthusiast Setup

Scenario: You run a homelab with servers, network equipment, and extensive smart home integration. You want monitoring and control.

The Reddit homelab favorite:

bash
You: Give me a status report on my entire homelabAssistant: Homelab Status Report - April 9, 8:47 PM**Servers (Proxmox cluster):**- pve-01: Up 47 days, CPU 34%, RAM 62%, Disk 47%- pve-02: Up 47 days, CPU 28%, RAM 58%, Disk 52%- pve-03: Up 47 days, CPU 41%, RAM 71%, Disk 48%Cluster: Healthy, HA enabled, 14 VMs running**Network:**- UniFi Dream Machine: Up, WAN 940/880 Mbps, 47 clients- Switch 24-port: Up, 18 ports active- Switch 8-port: Up, 6 ports active- APs: 3 online, 47 total clients  - Living Room AP: 18 clients, -67 dBm  - Office AP: 21 clients, -71 dBm  - Bedroom AP: 8 clients, -69 dBm**Storage (TrueNAS):**- Total: 24 TB (18.3 TB used, 5.7 TB free)- Pool health: All disks healthy- Snapshots: 247 (auto-pruning enabled)- Backups: Last run 4 hours ago (successful)**Smart Home (Home Assistant):**- Uptime: 47 days- Entities: 247 devices, 189 entities- Unavailable: 2 devices (garage temp sensor, basement motion)- Automations: 67 configured, 42 triggered today- Integrations: 23 active**Services:**- Plex: Running, 1 active stream (4K, direct play)- Pi-hole: Running, 47% blocked (18,394 queries blocked today)- Nextcloud: Running, 3 active syncs- Home Assistant: Running- Zigbee2MQTT: Running, 34 Zigbee devices- MQTT Broker: Running, 67 topics**Environmental:**- Server closet temp: 78°F (nominal, exhaust fan active)- Humidity: 41% (ideal)- UPS: Online, battery 100%, estimated runtime 34 minutes**Alerts:**⚠️ 2 devices offline (non-critical)✓ All critical services running✓ Backups current✓ No disk errorsEverything looking good! Anything specific you want to check?You: The UPS runtime seems low for 34 minutes. How much power am I pulling?Assistant: Analyzing power consumption...**Current load:** 847W**UPS capacity:** 1500VA / 900W (rated)**Runtime at current load:** 34 minutes (UPS calc)**Load breakdown** (from smart PDUs and power monitoring):- Proxmox cluster (3 servers): 420W (50%)- Network equipment (USG, switches, APs): 186W (22%)- TrueNAS server: 147W (17%)- Smart home hub/MQTT/misc: 94W (11%)**Analysis:**Your total load (847W) is near the UPS maximum continuous output (900W). This is why runtime is only 34 minutes.Recommendations:1. **Immediate:** You're at 94% UPS capacity - risky2. **Short-term:** Upgrade UPS to 2200VA/1980W model (runtime would be ~65 minutes)3. **Long-term:** Move TrueNAS to separate UPS (isolate storage)During power outage, current UPS priority:1. Shut down Plex/Nextcloud (non-critical)2. Keep network, HA, and one Proxmox node3. Extend runtime to ~50 minutesWant me to calculate UPS recommendations with pricing?

Impact:

  • Comprehensive infrastructure monitoring
  • Power consumption analysis
  • Proactive capacity planning
  • Integration of IT infrastructure with smart home

Enterprise/Advanced Features

Multi-Location Support

Control multiple homes/properties:

yaml
integrations:  homeAssistant:    instances:      main_house:        url: "https://home.example.com"        token: "token_1"            vacation_home:        url: "https://cabin.example.com"        token: "token_2"            office:        url: "https://office.example.com"        token: "token_3"

Then control by name:

bash
"Turn off all lights at the cabin""What's the temperature at the office?""Lock all doors at the main house"

Setup Option 1: HeraClaw Cloud (Recommended)

Time required: 60 seconds Technical skill: None Cost: Included in HeraClaw Cloud

Steps:

  1. Sign up for HeraClaw Cloud

    • Visit cloud.getopenclaw.ai
    • Takes 60 seconds
  2. Get your Home Assistant access token

    • In Home Assistant: Profile → Long-Lived Access Tokens
    • Create token named "HeraClaw"
    • Copy the token
  3. Connect in HeraClaw

    • Dashboard → Integrations → Home Assistant
    • Enter your HA URL (e.g., http://homeassistant.local:8123)
    • Paste access token
    • Click "Connect"
  4. Done!

    • Test: "Turn on the living room lights"

What you get:

  • Secure tunnel (access from anywhere, even if HA is local)
  • No port forwarding needed
  • Works even when your home IP changes
  • Professional support

Get Started: Start with HeraClaw Cloud →


Setup Option 2: Self-Hosted (Advanced)

Time required: 10-15 minutes Technical skill: Intermediate

Prerequisites

  • Home Assistant running and accessible
  • OpenClaw installed
  • Network access between OpenClaw and HA

Step-by-Step

Step 1: Get Long-Lived Access Token

  1. Open Home Assistant
  2. Click your profile (bottom left)
  3. Scroll to "Long-Lived Access Tokens"
  4. Click "Create Token"
  5. Name: "OpenClaw"
  6. Copy the token (starts with eyJ...)

Step 2: Find Your Home Assistant URL

Common formats:

  • Local network: http://homeassistant.local:8123
  • Local IP: http://192.168.1.100:8123
  • Remote (Nabu Casa): https://abcd1234.ui.nabu.casa
  • Remote (custom): https://ha.yourdomain.com

Step 3: Configure OpenClaw

Edit ~/.openclaw/config.yaml:

yaml
integrations:  homeAssistant:    enabled: true    url: "http://homeassistant.local:8123"    token: "YOUR_LONG_LIVED_TOKEN_HERE"        # Optional: Only expose certain domains    allowedDomains:      - light      - switch      - climate      - lock      - cover      - sensor      - automation      - scene

Step 4: Test Connection

bash
openclaw test integration home-assistant

Should output: ✓ Connected to Home Assistant (v2024.4.0)

Step 5: Try It

bash
openclaw chat "What lights are on?"

Troubleshooting

Connection refused?

  • Check HA URL is reachable: curl http://homeassistant.local:8123
  • Verify port (default 8123)
  • Check firewall rules

401 Unauthorized?

  • Token may have expired/been deleted
  • Generate new token in HA
  • Update config

Entity not found?

  • Entity IDs are case-sensitive
  • Use HA Developer Tools → States to find exact IDs
  • Example: light.living_room_main not light.living_room

Comparison: HeraClaw Cloud vs Self-Hosted

FeatureHeraClaw CloudSelf-Hosted
Setup time60 seconds10-15 minutes
Remote accessBuilt-in secure tunnelYou configure
Port forwardingNot neededMay be needed
Dynamic IP handlingAutomaticManual DNS updates
SupportProfessionalCommunity
CostSubscriptionFree
Network accessFrom anywhereDepends on setup

FAQ

Q: Does it work with Nabu Casa Cloud? A: Yes! Use your Nabu Casa URL as the Home Assistant URL.

Q: Can it create automations? A: It can trigger existing automations and scripts. Creating new automations is possible with YAML generation.

Q: What devices are supported? A: Any device in Home Assistant. If HA can control it, OpenClaw can control it.

Q: Is it secure? A: Yes. The access token gives full HA control, so protect your OpenClaw config. Use a dedicated token you can revoke anytime.

Q: Does it work with Zigbee/Z-Wave devices? A: Yes, as long as they're integrated into Home Assistant.

Q: Can I use this instead of Alexa/Google Home? A: Yes! Many users prefer it for privacy and flexibility.

Q: Does it work offline? A: Self-hosted can work offline (if HA and OpenClaw are on local network). Cloud requires internet.


Get Started: Start with HeraClaw Cloud →

Last updated: April 9, 2026

Features

Natural language control

Turn devices on/off, adjust settings using plain English

State queries

Ask about any sensor, device, or automation state

Automation triggers

Run existing Home Assistant automations by name

Scene support

Activate scenes like 'Movie Night' or 'Good Morning'

Scheduled monitoring

Cron jobs that check home state and send reports

Full entity access

Access all Home Assistant domains: lights, climate, locks, sensors

Use Cases

Voice-like control

Control your home from any messaging app — Telegram, Discord, iMessage

Security monitoring

Ask if doors are locked, windows are closed, alarms are armed

Energy awareness

Track power consumption, temperatures, and environmental sensors

Routine automation

Trigger morning/evening routines with a single message

Setup Guide

Requirements

  • Home Assistant instance running
  • Long-lived access token
  • Network access to Home Assistant API
1

Get a long-lived access token

In Home Assistant, go to your profile, scroll to Long-Lived Access Tokens, and create one.

2

Note your HA URL

Get your Home Assistant URL (local or Nabu Casa remote access).

3

Configure OpenClaw

Add Home Assistant URL and token to your OpenClaw configuration.

4

Test connection

Ask your assistant to list your Home Assistant entities or turn on a light.

Limitations

  • ⚠️Initial entity discovery may take time for large installations
  • ⚠️Real-time updates require additional configuration

Frequently Asked Questions

Does it work with Nabu Casa?

Yes, any URL that reaches your Home Assistant API works, including Nabu Casa remote access.

Can it create automations?

It can trigger existing automations and scripts. Creating new automations requires editing yaml or the HA UI.

What devices are supported?

Any device in Home Assistant. If HA can control it, your assistant can control it.

Is it secure?

The access token gives full control over Home Assistant. Protect your OpenClaw config and use a dedicated token you can revoke.

🔥 Your AI should run your business, not just answer questions.

We'll show you how.Free to join.

Join Vibe Combinator →

🐙 Your AI should run your business.

Weekly live builds + template vault. We'll show you how to make AI actually work.Free to join.

Join Vibe Combinator →