跳到正文
TakoAPI
返回技能列表

moltbot-ha

由 iamvaleriofantozzi 提供

Moltbook
1.9k下载量由 clawskills.sh 提供
3星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Control Home Assistant smart home devices, lights, scenes.

描述

该技能的功能

moltbot-ha is a CLI tool for controlling Home Assistant devices, scenes, and automations through the Home Assistant REST API. It supports lights, switches, covers, climate, and other entity domains. A configurable 3-level safety system requires explicit confirmation before executing critical actions like opening garage doors or triggering alarms.

Exposes the full Home Assistant service API through a simple CLI with built-in safeguards, avoiding the need to write custom REST calls or navigate the HA web UI for scripted control.

何时使用

  • Turn lights on/off and adjust brightness from the terminal
  • Activate Home Assistant scenes like movie mode or goodnight
  • Check sensor readings for temperature, humidity, or motion
  • Trigger morning or evening automation routines
  • Open or close blinds and garage doors with safety confirmation

示例工作流

输入

User asks: Turn on the kitchen light at 80% brightness and set color temperature to 350

智能体
  1. 1

    Run moltbot-ha list light to confirm entity ID exists

  2. 2

    Run moltbot-ha set light.kitchen brightness_pct=80 color_temp=350 to apply both attributes

  3. 3

    Verify result by running moltbot-ha state light.kitchen

输出

Kitchen light is on at 80% brightness with color temperature 350

前置要求

  • HA_TOKEN environment variable (Home Assistant long-lived access token)
  • Home Assistant instance URL accessible from the machine running moltbot-ha

安装

clawhub install iamvaleriofantozzi/moltbot-ha

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接