home-assistant-rest

home-assistant-rest is a skill for Claude Code, Codex from IkarusMK/AIcortex. It costs 32 tokens per session (383 once invoked), scanned A, original, Apache-2.0.

A set of instructions for connecting to Home Assistant, a home-automation system, through its REST API, which lets software read device states and call device services.

In plain words
What is it for?
Reading sensors, controlling lights and switches, adjusting climate settings, operating covers, and triggering scenes or automations.
Why use it?
It explains the required API patterns and reminds the agent to find the correct device before acting and ask for confirmation before changing physical devices.

Skill for Claude CodeCodex

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

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.

agentmods
npx agentmods add skills/ikarusmk/aicortex/home-assistant-rest
Any agent
npx skills add IkarusMK/AIcortex --skill home-assistant-rest
Clone the repo
git clone --depth 1 https://github.com/IkarusMK/AIcortex

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-rest

README.md
[![agentmods](https://agentmods.dev/badge/skills/ikarusmk/aicortex/home-assistant-rest.svg)](https://agentmods.dev/skills/ikarusmk/aicortex/home-assistant-rest)
Your own site
<a href="https://agentmods.dev/skills/ikarusmk/aicortex/home-assistant-rest"><img src="https://agentmods.dev/badge/skills/ikarusmk/aicortex/home-assistant-rest.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 383 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00032 $0.00383
Opus 5 $0.00016 $0.00192
Sonnet 5 $0.00006 $0.00077
Haiku 4.5 $0.00003 $0.00038

Measured 6d ago against content hash d7276f3aaa86, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

home-assistant-rest scanned grade A with 0 findings 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 6d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

examples/skills/home-assistant-rest/SKILL.md · 35 lines

What it actually says

Home Assistant over REST (via call_service)

When to use

Reading state or controlling devices in Home Assistant through this connector.

Setup (once)

Register HA as a service so the token stays server-side:

service_add(name="home-assistant",
            base_url="http://<ha-ip>:8123",
            token_env="HA_TOKEN")          # then secret_set("HA_TOKEN", <long-lived token>)

Patterns

  • Check it's alive: call_service(service="home-assistant", path="api/"){"message":"API running."}
  • Read a state: GET api/states/<entity_id> (e.g. sensor.living_room_temp).
  • Call a service: POST api/services/<domain>/<service> with a JSON body, e.g. path="api/services/light/turn_on", json_body={"entity_id":"light.kitchen","brightness_pct":40}.

Common domains

light (turn_on/off, brightness_pct, rgb_color) · switch · climate (set_temperature) · cover (open/close) · media_player · scene (turn_on) · automation (trigger).

Discipline

  • Find the entity first (don't guess ids) — list api/states or search before acting.
  • Controlling a physical device is a state-changing action → confirm with the user first.
  • Use entity_id, never internal device ids, in service calls.
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. 6d ago First seen · 35 lines · 32 tokens per session scan A d7276f3aaa86

Subscribe to this mod's changes

home-assistant-rest is a skill published in the GitHub repository IkarusMK/AIcortex (9 stars, last pushed 17d ago), licensed Apache-2.0. It adds 32 tokens to every session and 383 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. 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

ips-migration

Migrate an IP-Symcon object subtree between instances, or verify such a migration. Triggers: "IPS umziehen", "IP-Symcon auf neuen Rechner", "Subtree auf andere Instanz", "Config migrieren".

Schimmilab/ipsymcon-mcp-server · 52 tokens

ips-cleanup

Audit and clean up an IP-Symcon system — recurring errors, red logs, instances in error state, dead objects. Triggers: "Fehler-Audit", "rote Logs", "tote Instanzen entfernen", "IPS-Health-Check".

Schimmilab/ipsymcon-mcp-server · 56 tokens

devices-mcp-home

Live inventory of the user's smart home on this devices-mcp installation — cameras, Hue lights, Tapo P115 plugs, Netatmo weather, Ring, Nest Protect, Shelly sensors, and robots. Use when the user asks what devices they have, what's online, or wants a status summary before controlling hardware.

sandraschi/devices-mcp · 69 tokens

ipsymcon

Inspect and modify an IP-Symcon system via the ipsymcon MCP — object tree, variables, PHP scripts, events, automations. Use for any Symcon/Hausautomation request. Changes are always planned first.

Schimmilab/ipsymcon-mcp-server · 49 tokens

ips-automation

Design and build a NEW IP-Symcon automation: thresholds, state transitions, adjustable settings, verification. Triggers: "Automation bauen", "Zeitschaltung", "Schwellwert", "Standby abschalten".

Schimmilab/ipsymcon-mcp-server · 48 tokens

using-android

Use when invoking android-device MCP tools to drive a real Android device or emulator over ADB (agent-fleet project) -- screen capture, tap/swipe/keyboard, app install/launch/kill, on-device shell, host device file transfer, multi-agent coordination.

metahub-tech/agent-fleet · 60 tokens