India English
Kenya English
United Kingdom English
South Africa English
Nigeria English
United States English
United States Español
Indonesia English
Bangladesh English
Egypt العربية
Tanzania English
Ethiopia English
Uganda English
Congo - Kinshasa English
Ghana English
Côte d’Ivoire English
Zambia English
Cameroon English
Rwanda English
Germany Deutsch
France Français
Spain Català
Spain Español
Italy Italiano
Russia Русский
Japan English
Brazil Português
Brazil Português
Mexico Español
Philippines English
Pakistan English
Turkey Türkçe
Vietnam English
Thailand English
South Korea English
Australia English
China 中文
Somalia English
Netherlands Nederlands

How to Use OpenClaw as Your Home Assistant

Build Something Beautiful

With a .Co.za Domain

Just R50 (Back to R99 in 7 days)

A home assistant can take over a ton of daily tasks and save you real time. It can automate your smart home devices, manage schedules, send alerts, control lighting, and handle voice commands. Instead of doing everything by hand, setting up an OpenClaw home assistant helps you build a system that runs on its own.

In this guide, you will learn how to use OpenClaw as your home assistant. We will walk through the setup step by step, so you can get it running and start automating your tasks right away.

Let us dig in and get it set up.

What You’ll Need Before You Start

Before you touch a single setting, gather these first.

a) You need an OpenClaw instance running around the clock. This can live on a:

  • Raspberry Pi 4B or 5 (4GB or more RAM, aarch64)
  • Raspberry Pi 3 (armv7)
  • A mini PC
  • A VPS
  • Or even an old Android phone
openclaw home assistant device needed

Think of this device as the always-on brain behind your OpenClaw home assistant.

b) You need a smart home hub or platform, and Home Assistant is the top pick here. 

Some of OpenClaw’s capabilities include connecting to your smart home through Home Assistant’s own API. API is simply how two pieces of software talk to each other. So any platform Home Assistant already supports, like MQTT, Tuya, Xiaomi Mi Home, or SwitchBot, becomes available to OpenClaw through that same connection.

c) You will also need API access to your smart home platform, such as a Long Lived Access Token for Home Assistant. Think of this token as a special password that lets OpenClaw talk to your home setup safely.

d) You can also grab an AI model API key, whether that is OpenAI, Anthropic, Google Gemini, or a locally run model through Ollama. This lets your assistant follow plain, natural sentences instead of rigid commands.

e) Last, commit to keeping remote access secure.

OpenClaw is safe right out of the box, since by default it only binds to your local machine at 127.0.0.1 and creates a unique login token the first time it launches, and that token is needed on every gateway request except health checks. The only real risk shows up if you later change that bind address to 0.0.0.0, or expose the gateway through Docker or a badly set up reverse proxy. We will cover how to keep this locked down in Step 2.

Step 1: Generate a Home Assistant Long Lived Access Token

Log in to Home Assistant, then click your profile in the bottom left corner. Scroll down to Long Lived Access Tokens, click Create Token, and name it something clear, like OpenClaw Agent.

Copy the token right away, since you will not see it again once you close that window, and store it somewhere safe. If you use two-factor authentication, do not worry, since this token still works fine without it.

Step 2: Install OpenClaw (if not already installed)

Install OpenClaw using the official command:

curl -fsSL https://openclaw.ai/install.sh | bash

Then run:

openclaw onboard

During onboarding, add your LLM API key and choose your messaging platform. This step is what connects your OpenClaw home assistant to how you will actually control everything going forward.

Here is a closer look at security during install. 

OpenClaw binds to 127.0.0.1 by default and requires a login token on every gateway request except health checks, so a fresh install is never exposed to the internet on its own. Keep it that way unless you truly need to change it. 

If you ever do need remote access, turn on HTTPS first and restrict access to your specific messaging user ID. Avoid setting the bind address to 0.0.0.0 or routing it through an unprotected reverse proxy.

Step 3: Install the Home Assistant Integration

Install the Home Assistant Integration on OpenClaw

You have three options here, so pick whichever fits your OpenClaw Home Assistant setup best.

Option A: HACS custom integration

This works best if you run HA OS. Install HACS through Settings, then Addons. Go to Integrations, then Custom Repositories, and add techartdev/OpenClawHomeAssistantIntegration, setting the type as Integration, then click Download. 

From there, go to Settings, then Devices and Services, click Add Integration, search for OpenClaw, and enter your OpenClaw webhook URL along with your API token.

Option B: Home Assistant Add-on

This runs your OpenClaw Home Assistant right inside HAOS. Add the techartdev/OpenClawHomeAssistant repository and install the add-on. This setup includes the full OpenClaw gateway, a web terminal, Assist Pipeline support, and storage that survives updates.

Option C: Manual skill config

This suits a self-hosted OpenClaw running on a separate machine. Set your Home Assistant token with export HOME_ASSISTANT_TOKEN=your_long_lived_token_here, and add it to your shell profile so it sticks around. Then add your Home Assistant URL and token inside OpenClaw’s skills configuration.

Step 4: Connect Your Messaging Channel

During onboarding, connect your preferred messaging platform, whether that is Telegram, WhatsApp, Discord, or iMessage. Your OpenClaw Home Assistant will work through whichever one you choose.

Once connected, you can control your home from anywhere, since your OpenClaw gateway runs nonstop on your server and stays available around the clock. With messaging in place, your OpenClaw home assistant is ready to actually respond once you reach the next step.

Step 5: Run Entity Discovery

Run the discovery scan, and it will query Home Assistant, return all entity IDs, and show friendly names with current states. Even with plenty of devices, this only takes a few seconds.

One thing worth knowing. 

Home Assistant creates several entities per device, so you will likely see more entities than you expected. It is worth taking time to review the list and filter it down to only what you actually need.

OpenClaw sees these entities through its MCP, short for Model Context Protocol, which is how it connects to Home Assistant in the first place. This connection lets your openclaw home assistant read entity states, call services, and build automations directly, covering 34 tools across lights, switches, climate, and more.

Step 6: Test Basic Device Control

Start with a few simple tests, like turning lights on and off, adjusting brightness, changing thermostat settings, or locking and unlocking doors. These small tests confirm your openclaw home assistant is talking to your devices the way it should.

You can also run automations by name or trigger scenes like Movie Night or Good Morning. Try telling your openclaw home assistant things like “Turn off living room lights,” “Set bedroom lights to 40%,” or “Start movie night.” Commands do not need to be exact, since natural language works just fine here.

Step 7: Set Up Routines and Triggers

There are two kinds of automation at play here, and it helps to know the difference between them. 

OpenClaw managed routines run on cron-style schedules you set directly through OpenClaw, like a message that goes out at the same time every day. Home Assistant native automations work a bit differently, since they trigger from events inside Home Assistant itself, and OpenClaw can simply call them by name.

Now it is time to automate your home with your OpenClaw Home Assistant. You can set schedules using cron-style timing, trigger actions from Home Assistant events, or even use presence-based routines that respond when you arrive or leave. 

Try examples like “Message me when temperature drops below 18°C,” “Turn lights on when I arrive home,” or “Prepare house for guests at 7 PM.” You can even build actions across multiple devices, like lights, the thermostat, and notifications, all working together.

For anything with more complex logic, build a native Home Assistant automation first, then trigger it through OpenClaw by name.

Step 8: Keep It Running and Up to Date

This is a step you do not want to skip.

By default, the gateway only binds to 127.0.0.1, your own local machine, and that is the safe setup to stick with. OpenClaw will not expose itself to outside networks unless you explicitly change the bind address to something like 0.0.0.0, or expose it through Docker or a badly configured reverse proxy.

It also runs on port 18789 by default, which is simply the listening port for the gateway service.

Authentication stays on the whole time too. 

On the first run, OpenClaw creates a random login token, and every gateway request needs this token in the header:Authorization:Bearer. The only exception is the health check endpoint, which stays open for monitoring.

A few commands are worth remembering here:

Regular updates run:

openclaw update

Check system health:

openclaw doctor

Monitor gateway:

openclaw gateway status

Check logs:

journalctl

OpenClaw as Your Home Assistant Troubleshooting

IssueFix
Gateway will not startRun openclaw doctor to check for config errors, then restart and confirm with openclaw gateway status that it is live
Messaging bot gives no responseReconnect your platform through openclaw onboard and confirm the bot has the right permissions
Entities not showing upRe-run entity discovery, and check that the entity is exposed to the OpenClaw integration in Home Assistant
Cannot reach OpenClaw remotelyConfirm HTTPS is enabled and access is restricted to your messaging user ID, and do not expose the default port publicly without this
AI responses stop workingCheck your internet connection if using a cloud LLM, since local Home Assistant automations keep running regardless
Automation did not triggerConfirm whether it is an OpenClaw cron routine or a Home Assistant native automation, since each one works a little differently

Start Using OpenClaw as Your Home Assistant Now

You now have a complete setup ready to go on how to use OpenClaw as your Home Assistant. 

OpenClaw connects your Home Assistant to a simple messaging interface, so you can control devices with simple messages, run automations easily, and access your home from anywhere.

If you want stable performance behind all of this, you need reliable hosting. Truehost is a strong option here, giving you a fast VPS, good uptime, affordable pricing, and easy scaling as your needs grow. Start small with Truehost OpenClaw hosting, then grow your OpenClaw Home Assistant as your needs expand.

Read More Posts

wordpress hosting for beginners

WordPress Hosting for Beginners: A Simple South African Guide

If you have searched for ways to build a website, you have probably seen the word “WordPress” everywhere.…

How to Transfer a Domain from Domains.co.za to Truehost

How to Transfer a Domain from Domains.co.za to Truehost

A domain transfer is moving your domain name from one registrar to another. When you transfer a domain,…

n8n VPS Pricing

n8n VPS Pricing: How Much Should You Budget?

If you are thinking about running n8n on a VPS, one big question comes up fast. How much…

n8n Workflow for WhatsApp Automation: Steps to Get Started

n8n Workflow for WhatsApp Automation: Steps to Get Started

WhatsApp is the primary channel businesses use to reach customers, especially outside the US, and pairing it with…