home-assistant

home-assistant is a skill for Claude Code, Codex from malue-ai/dazee-small. It costs 30 tokens per session (1,312 once invoked), scanned A, original, MIT.

A workflow for controlling smart-home devices through Home Assistant, a system that connects and automates devices from different manufacturers.

In plain words
What is it for?
Use it to control lights, climate systems, locks, curtains, sensors, scenes, and automations, such as setting a temperature or triggering a bedtime scene.
Why use it?
It lets you check device states and control home equipment with natural-language requests instead of operating each device separately.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to control lights, climate systems, locks, curtains, sensors, scenes, and automations, such as setting a temperature or triggering a bedtime scene.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/malue-ai/dazee-small/home-assistant
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add malue-ai/dazee-small --skill home-assistant
Clone the repo
git clone --depth 1 https://github.com/malue-ai/dazee-small

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for home-assistant

README.md
[![agentmods](https://agentmods.dev/badge/skills/malue-ai/dazee-small/home-assistant/github.svg)](https://agentmods.dev/skills/malue-ai/dazee-small/home-assistant)
Your own site
<a href="https://agentmods.dev/skills/malue-ai/dazee-small/home-assistant"><img src="https://agentmods.dev/badge/skills/malue-ai/dazee-small/home-assistant/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for home-assistant

Your own site · 80×15
<a href="https://agentmods.dev/skills/malue-ai/dazee-small/home-assistant"><img src="https://agentmods.dev/badge/skills/malue-ai/dazee-small/home-assistant.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,312 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.01312
Opus 5 $0.00015 $0.00656
Sonnet 5 $0.00006 $0.00262
Haiku 4.5 $0.00003 $0.00131

Measured 9d ago against content hash 529f5a082c17, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

home-assistant scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s "$HOMEASSISTANT_URL/api/states" \
instances/xiaodazi/skills/home-assistant/SKILL.md · 154 lines

How it starts

The opening of the file, as written. The whole thing — 154 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Home Assistant — 智能家居控制

通过 Home Assistant 控制家中所有智能设备:灯光、空调、窗帘、门锁、传感器、场景、自动化等。支持 2600+ 品牌,一句话操控全屋。

使用场景

  • 用户说「把客厅灯调暗一点」「关掉所有灯」
  • 用户说「空调调到 24 度」「打开制冷模式」
  • 用户说「现在家里温度多少?」「湿度多少?」
  • 用户说「我要睡觉了」→ 触发 "晚安" 场景(关灯、锁门、降温)
  • 用户说「帮我设个自动化:每天早上 7 点开窗帘」
  • 结合 pomodoro:番茄钟结束时调亮灯光提醒休息
  • 结合每日简报类 Skill(如已启用):早间简报时自动调节室内环境

前置条件

  1. 运行 Home Assistant 实例(https://www.home-assistant.io/)
  2. 在 Home Assistant 中生成长期访问令牌(Long-Lived Access Token)
  3. 设置环境变量:export HOMEASSISTANT_TOKEN="your-token"
  4. 设置环境变量:export HOMEASSISTANT_URL="http://homeassistant.local:8123"

Home Assistant 2025.4.4+ 内置 MCP Server 支持,可直接通过 MCP 协议通信。

执行方式

通过 MCP 工具调用(推荐)

Home Assistant 提供 MCP Server 集成,通过 MCP 协议直接操作:

控制设备
工具: call_service
参数:
  domain: "light"
  service: "turn_on"
  target:
    entity_id: "light.living_room"
  data:
    brightness_pct: 50
    color_temp_kelvin: 3000
查询状态
工具: get_state
参数:
  entity_id: "sensor.living_room_temperature"
触发场景
工具: call_service
参数:
  domain: "scene"
  service: "turn_on"
  target:
    entity_id: "scene.good_night"

通过 REST API 调用(备选)

# 获取所有设备状态
curl -s "$HOMEASSISTANT_URL/api/states" \
  -H "Authorization: Bearer $HOMEASSISTANT_TOKEN"

# 控制灯光
curl -s -X POST "$HOMEASSISTANT_URL/api/services/light/turn_on" \
  -H "Authorization: Bearer $HOMEASSISTANT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"entity_id": "light.living_room", "brightness_pct": 80}'

# 设置空调温度
curl -s -X POST "$HOMEASSISTANT_URL/api/services/climate/set_temperature" \
  -H "Authorization: Bearer $HOMEASSISTANT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"entity_id": "climate.bedroom", "temperature": 24}'

# 查询传感器
curl -s "$HOMEASSISTANT_URL/api/states/sensor.outdoor_temperature" \
  -H "Authorization: Bearer $HOMEASSISTANT_TOKEN"

常用设备控制模板

灯光

开灯/关灯: light.turn_on / light.turn_off
调亮度: brightness_pct (0-100)
调色温: color_temp_kelvin (2700暖光-6500冷光)
调颜色: rgb_color [R, G, B]

空调/暖通

设温度: climate.set_temperature → temperature
设模式: climate.set_hvac_mode → hvac_mode (heat/cool/auto/off)
设风速: climate.set_fan_mode → fan_mode (low/medium/high/auto)

Read the full file on GitHub · 154 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 154 lines · 30 tokens per session scan A 529f5a082c17

Subscribe to this mod's changes

home-assistant is a skill published in the GitHub repository malue-ai/dazee-small (36 stars, last pushed 5mo ago), licensed MIT. It adds 30 tokens to every session and 1,312 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

gke-compute-classes

Configures, optimizes, and troubleshoots GKE ComputeClasses. Use when configuring Spot VMs with on-demand fallback, targeting specific accelerators (GPUs/TPUs) or machine families, restricting ComputeClass access, or debugging pending pods related to node pool auto-creation. Do not use for cluster-level Node Auto…

google/skills · 83 tokens

jetson-diagnostic

Read-only Jetson health snapshot for identity, memory, GPU, thermal, power, storage, services, and top processes.

NVIDIA/skills · 30 tokens

doca-socket-relay

Use this skill when the operator is driving the DOCA Socket Relay to bridge a socket-oriented host application onto a BlueField DPU peer without rewriting it — picking the deployment shape (in-process, sidecar, or BlueField service container), configuring the host-side socket and the DPU-side forwarding endpoint…

NVIDIA/skills · 236 tokens

offensive-z-wave

Z-Wave attack methodology — sniffing with Z-Force / EZ-Wave / RTL-SDR + ZniffMobile, S0 (legacy) network-key derivation flaw and key reuse, S2 (modern) ECDH commissioning analysis, replay/injection on unauthenticated nodes, default-key brute-force on test deployments, and home-automation hub pivots. Use when targeting…

SnailSploit/Claude-Red · 113 tokens

hsb-flash

Flash the FPGA on an HSB board connected to an NVIDIA devkit. Supports HSB Lattice boards (FPGA versions 2407, 2412, 2507, 2510) and Leopard Imaging VB1940 "all-in-one" cameras (FPGA versions 2507, 2510). Uses release-specific YAML manifests and board-type-specific program commands. Lattice and VB1940 commands must…

NVIDIA/skills · 94 tokens

jetson-validate-image

Use after jetson-flash-image to run static BSP checks, on-target smoke/regression tests on a flashed DUT, or both. Not for build or flash steps. Triggers: validate bsp, on-target validation.

NVIDIA/skills · 50 tokens