Smart Home Integration
OpenClaw + Philips Hue
Control lights, scenes, and rooms from your AI assistant.
Category
Smart Home
Setup Time
~3 minutes
What you can do
- Turn lights on/off
- Adjust brightness
- Control by room/group
- Activate scenes
Setup Guide
Prerequisites
- OpenClaw running (see our deployment guide)
- Philips Hue Bridge (v1 or v2)
- At least one Hue light or device
- Bridge connected to your local network
Step 1: Find Your Bridge IP
- Open the Hue app on your phone
- Go to Settings → Hue Bridges
- Tap the "i" icon next to your bridge
- Note the IP address
Or use discovery:
# From a machine on the same network
curl -s https://discovery.meethue.com/
Step 2: Create a User (Press Button Method)
- Press the button on your Hue Bridge
- Within 30 seconds, make this API call:
curl -X POST "http://BRIDGE_IP/api" -d '{"devicetype":"openclaw#assistant"}'
- You'll receive a username (API key):
[{"success":{"username": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}}]
- Save this username — it's your API key
Configuration
Add the Philips Hue integration to your OpenClaw config:
# In your openclaw config
integrations:
hue:
enabled: true
bridge_ip: "192.168.1.100" # Your bridge IP
username: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Or via environment variables in your docker-compose.yml:
environment:
- HUE_ENABLED=true
- HUE_BRIDGE_IP=192.168.1.100
- HUE_USERNAME=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Step 3: Test the Connection
Verify your setup works:
# List all lights
curl "http://BRIDGE_IP/api/USERNAME/lights"
# Turn on a light
curl -X PUT "http://BRIDGE_IP/api/USERNAME/lights/1/state" -d '{"on":true}'
Verification
Try asking OpenClaw to control your lights:
"Turn on the living room lights"
"Set bedroom to 50% brightness"
"Dim the kitchen lights"
"Turn all lights off"
"Set the mood scene"
Check logs for API calls:
docker compose logs -f openclaw | grep -i hue
Common Issues
Link button not pressed: The bridge button must be pressed within 30 seconds of creating a new user. If you get "link button not pressed", try again.
Bridge not found: Ensure OpenClaw and the bridge are on the same network. For Docker, use --network host or proper port forwarding.
Unauthorized user: If your username was revoked, press the bridge button and create a new user.
Lights not responding: Check that lights are powered on and connected to the bridge. Restart the bridge if needed.
Frequently Asked Questions
Does OpenClaw work with Philips Hue?
Yes — OpenClaw integrates with Philips Hue via the local Bridge API. It can control lights, adjust brightness, and activate scenes. Setup takes about 3 minutes.
Is the Hue integration free?
Yes. The Hue Bridge API is completely free with no rate limits. You just need a Hue Bridge and lights.
How do I set up Philips Hue with OpenClaw?
Find your bridge IP, press the link button on the bridge, create an API username via curl, and configure OpenClaw with the bridge IP and username.
Does it work remotely (outside my network)?
The local API requires being on the same network. For remote access, you'd need a VPN or tunnel. The Hue cloud API is also an option but requires OAuth.
Can OpenClaw control Hue groups and rooms?
Yes. OpenClaw can control individual lights, groups, rooms, and zones defined in your Hue setup.
Ready to set up Philips Hue?
Follow our free guide to deploy OpenClaw and connect Philips Hue in minutes.
Official docs: https://developers.meethue.com/develop/get-started-2/