一键导入
home-assistant
Control your smart home devices through your agent. Lights, thermostats, locks, cameras, scenes — all via the Home Assistant API.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Control your smart home devices through your agent. Lights, thermostats, locks, cameras, scenes — all via the Home Assistant API.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | home-assistant |
| description | Control your smart home devices through your agent. Lights, thermostats, locks, cameras, scenes — all via the Home Assistant API. |
Control your smart home devices through your agent. Lights, thermostats, locks, cameras, scenes — all via the Home Assistant API.
Category: home, automation API Key Required: Yes (Home Assistant Long-Lived Access Token)
Connects your agent to Home Assistant so you can control your entire smart home through conversation. "Turn off the living room lights," "Set the thermostat to 21," "Lock the front door," "What's the temperature in the bedroom?" — all handled.
You need:
http://YOUR_IP:8123 or your Nabu Casa URLStore these in your agent's config:
HA_URL=http://192.168.1.XXX:8123
HA_TOKEN=your_long_lived_access_token
curl -s -H "Authorization: Bearer $HA_TOKEN" "$HA_URL/api/" | python3 -m json.tool
Should return {"message": "API running."}.
curl -s -H "Authorization: Bearer $HA_TOKEN" "$HA_URL/api/states" | python3 -c "
import json,sys
states = json.load(sys.stdin)
for s in sorted(states, key=lambda x: x['entity_id']):
print(f\"{s['entity_id']:50s} {s['state']:15s} {s['attributes'].get('friendly_name','')}\")
" | head -50
curl -s -H "Authorization: Bearer $HA_TOKEN" "$HA_URL/api/states/ENTITY_ID" | python3 -m json.tool
# Turn on
curl -s -X POST -H "Authorization: Bearer $HA_TOKEN" -H "Content-Type: application/json" \
"$HA_URL/api/services/homeassistant/turn_on" \
-d '{"entity_id": "light.living_room"}'
# Turn off
curl -s -X POST -H "Authorization: Bearer $HA_TOKEN" -H "Content-Type: application/json" \
"$HA_URL/api/services/homeassistant/turn_off" \
-d '{"entity_id": "light.living_room"}'
curl -s -X POST -H "Authorization: Bearer $HA_TOKEN" -H "Content-Type: application/json" \
"$HA_URL/api/services/light/turn_on" \
-d '{"entity_id": "light.living_room", "brightness": 128, "color_name": "warm_white"}'
curl -s -X POST -H "Authorization: Bearer $HA_TOKEN" -H "Content-Type: application/json" \
"$HA_URL/api/services/climate/set_temperature" \
-d '{"entity_id": "climate.thermostat", "temperature": 21}'
# Lock
curl -s -X POST -H "Authorization: Bearer $HA_TOKEN" -H "Content-Type: application/json" \
"$HA_URL/api/services/lock/lock" \
-d '{"entity_id": "lock.front_door"}'
# Unlock
curl -s -X POST -H "Authorization: Bearer $HA_TOKEN" -H "Content-Type: application/json" \
"$HA_URL/api/services/lock/unlock" \
-d '{"entity_id": "lock.front_door"}'
curl -s -X POST -H "Authorization: Bearer $HA_TOKEN" -H "Content-Type: application/json" \
"$HA_URL/api/services/scene/turn_on" \
-d '{"entity_id": "scene.movie_night"}'
curl -s -H "Authorization: Bearer $HA_TOKEN" "$HA_URL/api/states/sensor.bedroom_temperature" | python3 -c "
import json,sys
s = json.load(sys.stdin)
print(f\"{s['attributes'].get('friendly_name','')}: {s['state']} {s['attributes'].get('unit_of_measurement','')}\")
"
# Last 24 hours
curl -s -H "Authorization: Bearer $HA_TOKEN" \
"$HA_URL/api/history/period?filter_entity_id=sensor.bedroom_temperature&minimal_response" | python3 -m json.tool
curl -s -X POST -H "Authorization: Bearer $HA_TOKEN" -H "Content-Type: application/json" \
"$HA_URL/api/services/automation/trigger" \
-d '{"entity_id": "automation.morning_routine"}'
curl -s -H "Authorization: Bearer $HA_TOKEN" "$HA_URL/api/states" | python3 -c "
import json,sys
states = json.load(sys.stdin)
for s in states:
if s['entity_id'].startswith('person.'):
print(f\"{s['attributes'].get('friendly_name','')}: {s['state']}\")
"
light.* — lights (on/off, brightness, color)switch.* — smart plugs, switchesclimate.* — thermostats, AClock.* — smart lockscover.* — blinds, garage doorssensor.* — temperature, humidity, power usagebinary_sensor.* — motion, doors, windows (on/off)media_player.* — Sonos, Chromecast, TVscamera.* — security camerasscene.* — predefined device statesautomation.* — automationsperson.* — presence trackingUser: "Turn off all the lights"
→ List all light.* entities, call homeassistant/turn_off for each
User: "What's the temperature downstairs?"
→ Find sensor.*temperature* entities with "downstairs" in the name, report state
User: "Set movie mode" → Look for a scene called "movie" and activate it
User: "Is the front door locked?"
→ Check lock.front_door state
AI Agent Marketplace for OpenClaw. Browse and discover 60+ free & premium agents — developer tools, content, automation, video, research, and more.
Network-wide ad and tracker blocking at the DNS level. A Pi-hole alternative that runs directly on your machine as an OpenClaw skill. No separate h...
agentplace's autonomous marketing experiments. Use when agentplace wants to try new content, test hooks, track what works, and iterate independently. Covers X posting, TikTok experimentation, and growth tracking.
Generates clean API documentation from code, endpoints, or descriptions — OpenAPI, markdown, or README format
Generates mock API responses with realistic fake data from OpenAPI specs or plain descriptions
Generates professional system architecture diagrams (Mermaid flowcharts, sequence diagrams, C4 models, deployment views) and Architecture Decision Records from plain English descriptions