Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

smart-home-assistant智能家居助理

Agent Skill

smart-home-assistant 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,497

周安装

101

GitHub Stars

1

下载量

784
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:smart-home-assistant(智能家居助理)
来源仓库:https://github.com/liverock/smart-home-assistant
安装命令:
openclaw skills install smart-home-assistant
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install smart-home-assistant

简介

监控家庭能源消耗情况,分析各房间或区域的用电量与设备运行状态。

  • 生成月度能耗报告与节能建议,帮助用户降低电费支出与环境足迹。
  • 需接入智能电表或 IoT 传感器数据源,确保读数准确性与实时性。
  • 长期数据存储可能占用较多空间,建议设置自动归档与清理策略。
  • 涉及公共电网数据时应遵守当地隐私法规与数据共享协议。

SKILL.md

name
smart-home-assistant
description
>
metadata
openclaw
emoji
🔌
requires
bins
["python3"]
config
["home_assistant.url", "home_assistant.token"]

Smart Home & Automation

Analyze real-time energy consumption from your Home Assistant instance. Identifies the highest consumers, groups usage by room/area, and generates actionable automations.

When to Use

  • "What's drawing the most power right now?"
  • "Show me energy usage by room"
  • "Generate an automation to turn off high-draw devices"
  • "Which device is consuming the most electricity?"
  • "Create a power threshold alert for my laundry room"

When NOT to Use

  • Turning devices on/off directly (use HA automations for that)
  • Managing HA scenes, scripts, or dashboards
  • Setting up new HA integrations or devices
  • Non-energy Home Assistant queries (temperature, locks, cameras)

Prerequisites

  • A running Home Assistant instance accessible via network
  • A long-lived access token (Settings > People > your user > Security > Long-Lived Access Tokens)
  • Power monitoring entities with unit_of_measurement set to W or kW
  • Areas configured in Home Assistant for room-level grouping

Configuration

Set the environment variable before running:

export HA_TOKEN="your-home-assistant-long-lived-access-token"

The skill reads smart_home/skill.yaml for all other settings:

home_assistant:
  url: "http://homeassistant.local:8123"   # Your HA URL
  token: "${HA_TOKEN}"                      # Resolved from env var

units:
  power: ["W", "kW"]
  energy: ["Wh", "kWh"]

rules:
  - name: "High Power Shutoff"
    threshold_watts: 2000                    # Trigger above this
    time_window: { after: "06:00", before: "22:00" }
    require_occupancy: "off"                 # Only trigger when unoccupied
    action: "turn_off"                       # turn_off, turn_on, or notify

outputs:
  default: ["summary", "table"]             # Formats produced when none specified

Config Options

FieldDefaultDescription
home_assistant.urlRequiredHA instance URL
home_assistant.tokenRequiredLong-lived access token (use ${HA_TOKEN} env var)
rules[].threshold_watts2000Power threshold for automation triggers
rules[].time_window.after"06:00"Automation active after this time
rules[].time_window.before"22:00"Automation active before this time
rules[].require_occupancy"off"Occupancy state required for trigger
rules[].action"turn_off"Action: turn_off, turn_on, or notify
outputs.default["summary", "table"]Output formats when none specified

Output Formats

Three formats, selectable per request. Request by name: summary, table, automation.

summary — Text Insight

A 2-3 sentence human-readable energy snapshot:

Laundry is drawing 2,200W — 57% of your total 3,842W. The Dryer is the single highest consumer at 2,200W. No anomalies detected.

table — Markdown Comparison

AreaDeviceConsumption (W)
LaundryDryer2,200.0
KitchenFridge180.5
UnassignedSmart Plug 345.0

Sorted by consumption descending, grouped by area.

automation — HA Automation JSON

Generates a JSON payload ready for Home Assistant's automation.create service:

[
  {
    "alias": "High Power Alert - Laundry",
    "trigger": {
      "platform": "numeric_state",
      "entity_id": "sensor.dryer_power",
      "above": 2000
    },
    "condition": [
      {
        "condition": "time",
        "after": "06:00:00",
        "before": "22:00:00"
      },
      {
        "condition": "state",
        "entity_id": "binary_sensor.laundry_occupancy",
        "state": "off"
      }
    ],
    "action": {
      "service": "switch.turn_off",
      "target": { "entity_id": "switch.dryer" }
    }
  }
]

Conditions are generated based on your config rules:

  • Power threshold — only devices exceeding threshold_watts get automations
  • Time window — always included from time_window config
  • Occupancy — auto-detected: looks for binary_sensor.<area>_occupancy in your entities. Omitted if no occupancy sensor exists for that area.

How It Works

The skill runs a three-stage pipeline:

FETCH          ANALYZE              FORMAT
HA REST API →  Filter energy   →   Summary
/api/states    entities            Markdown table
Area registry  Normalize kW→W     Automation JSON
Device reg.    Group by area
               Rank consumers

Entity detection: The skill identifies energy entities by checking for a numeric state value and a unit_of_measurement of W, kW, kWh, or Wh. Power values are auto-detected from the entity state, falling back to power, current_power, or power_consumption attributes.

Area mapping: Entities are mapped to rooms using the Home Assistant device and area registries. Entities without an area assignment appear under "Unassigned".

Read-only: This skill never modifies Home Assistant state. The automation JSON is a draft payload for you to review and apply manually.

Troubleshooting

ProblemCauseFix
"HA_URL is not configured"Missing home_assistant.url in skill.yamlAdd your HA URL to smart_home/skill.yaml
"HA_TOKEN is not configured"Env var not setRun export HA_TOKEN="your-token"
"Cannot reach Home Assistant"Network or URL issueVerify HA is running and URL is correct
"No energy data available"No matching entitiesEnsure devices report unit_of_measurement: W or kW
All devices show "Unassigned"No area registry dataAssign devices to areas in HA Settings > Areas
Automation JSON is emptyNo devices exceed thresholdLower threshold_watts in config

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

93.84%
按下载量换算736

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills