← 返回
开发者工具 Key 中文

Homeassistant

Control and monitor Home Assistant smart devices using commands for lights, switches, covers, climate, scenes, and scripts via the HA API.
通过HA API使用命令控制和监控Home Assistant智能设备,支持灯光、开关、遮盖物、温控、场景及脚本。
chris6970barbarian-hue
开发者工具 clawhub v1.0.0 1 版本 99849.8 Key: 需要
★ 0
Stars
📥 1,330
下载
💾 19
安装
1
版本
#latest

概述

Home Assistant Skill

Control smart home devices via Home Assistant API.

Skill Metadata

  • Name: homeassistant
  • Type: OpenClaw Skill
  • Purpose: Control lights, switches, covers, climate, scenes, scripts via HA API

Setup Commands

Prerequisites

  1. Home Assistant running on local network
  2. Long-Lived Access Token from HA Profile page

Configuration (One-Command)

# Run this to configure
ha-cli setup <HA_URL> <TOKEN>

# Example:
ha-cli setup 192.168.1.100 your_long_lived_token_here

Or set environment variables:

export HA_URL="http://homeassistant.local:8123"
export HA_TOKEN="your_token_here"

Usage Commands

Basic Control

# Turn on device (any type)
ha-cli on <device_name>
ha-cli <device_name> on

# Turn off device
ha-cli off <device_name>
ha-cli <device_name> off

Brightness & Color

# Set brightness (0-100)
ha-cli brightness <0-100> <device_name>
ha-cli <device_name> brightness 75

# Set RGB color
ha-cli rgb #RRGGBB <device_name>
ha-cli rgb #FF5500 "Living Room"

Temperature

# Set temperature
ha-cli <temperature> <thermostat_name>
ha-cli 22 thermostat

Scenes & Scripts

# Activate scene
ha-cli scene <scene_name>
ha-cli scene movie

# Run script
ha-cli script <script_name>
ha-cli script morning

Status & Discovery

# Check HA status
ha-cli status
ha-cli info

# List all entities
ha-cli list
ha-cli list entities

# List by domain
ha-cli list light
ha-cli list switch
ha-cli list climate

Supported Device Types

DomainCommandsExamples
----------------------------
lighton, off, brightness, rgbha-cli on living room
switchon, offha-cli off tv
coveropen, close, stopha-cli open blinds
climatetemperature, modeha-cli 22 thermostat
locklock, unlockha-cli lock front door
sceneactivateha-cli scene movie
scriptrunha-cli script morning

Entity Matching

  • Case insensitive
  • Partial name matching (bed → Bedroom Light)
  • Fuzzy matching enabled

Error Handling

  • Connection error: Shows HA URL and token setup instructions
  • Entity not found: Shows similar entity suggestions
  • Invalid command: Shows usage help

Related Skills

  • openhue (Philips Hue)
  • sonoscli (Sonos speakers)
  • eightctl (Eight Sleep)

Files

homeassistant/
├── SKILL.md      # This file
├── README.md     # User documentation
├── ha-cli        # Main CLI executable
├── ha            # Bash wrapper
└── config.json   # Saved configuration

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 06:52 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 666 📥 323,799
data-analysis

Acp

chris6970barbarian-hue
雇佣专业代理处理任何任务——数据分析、交易、内容生成、研究、链上操作、3D打印、实物商品、礼品配送等。
★ 1 📥 1,693
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 65 📥 179,847