casita
БесплатноБез исполняемых скриптовНе проверенRead a Home Assistant home through the casita CLI: what is on, sensor readings, what needs attention, why something changed. Runs owner-approved scripts. Use…
от igrigorik89 установок в других каталогахОб этом скилле
casita
Casita is a structured way to read a Home Assistant home. It reads live state and structure, answers "why did this happen", and runs ONLY the scripts the owner has allowed. It is not a general Home Assistant remote — it cannot call arbitrary services, and the owner's deny rules refuse some scripts by name regardless of exposure.
Setup
Check that the CLI is installed and can reach the house before anything else:
casita --version # not found? install it: npm install -g casita (needs Node 22.16+)
casita doctor # "ok": true means the config, the token and Home Assistant all check out
If doctor reports a failed check, casita is not configured yet. Configuring it takes three things only the owner can provide. Ask for them; do not guess:
- the Home Assistant URL:
casita init --url <url>writes~/.casita/config.yaml, and never replaces an existing one - a long-lived access token, set as
CASITA_HA_TOKENin the environment casita runs in. Never print it, log it or write it to a file. - which entities casita may read: the owner exposes them in Home Assistant under Settings, Voice assistants, Expose
Running scripts is off until the owner adds an allow prefix to config.yaml. Do not edit the policy yourself.
Mental model
- Home Assistant exposure is the master gate. Casita is purely SUBTRACTIVE:
it can only ever be MORE restrictive than what you exposed to Assist, never
less. It cannot read the state of, or run, anything you have not exposed.
readable? = exposed AND not read-denywritable? = exposed AND matches an allow-prefix AND not deny-floor
- Casita reads via structured JSON, not prose. A command that reads or acts on
the home returns an envelope
{ ha, result }. Project it with--view. Three answers have their own shape:doctor({ ok, checks }) andinittake no--view, and a barecasita viewlists the views as{ views }. - Writes are a closed vocabulary. Only exposed scripts the owner has allowed
(by convention
script.casita_*), previewed and audited. Everything else returns a structured denial.
How to decide what to do
| User says… | Run |
|---|---|
| "Is the porch light on?" / "how warm is the bedroom?" | casita find "<thing>" or casita state <entity_id> |
| "What's in the garage?" | casita area "Garage" |
| "What's going on in the house?" | casita overview |
| "What's been happening lately?" | casita log --since 6 (house-wide activity) |
| "Why did the backyard lights turn on?" | casita log <entity_id> --since 24 |
| "Which batteries are low?" | casita find --device-class battery --below 20 |
| "What needs attention?" / "anything wrong?" | the attention sweep — casita view :maintenance + :health + :stale (see §Attention sweep) |
| "Is anything drawing power abnormally right now?" | casita stats --device-class power (current vs hour-of-day baseline) |
| "Has our energy use shifted? where?" | casita stats --platform emporia_vue --trend (week-over-week + attribution) |
| A cross-cutting question fixed filters can't express | casita view "<SELECT …>" (read-only SQL view) |
| "Turn off the backyard lights" | casita actions → if a matching action exists: casita run <name> --execute; else explain it isn't an approved action |
Reading the house
casita find "kitchen light" # text search (name/id/alias/area)
casita find --area Garage --domain sensor # structured filters
casita find --device-class battery --below 20
casita find --domain light --state on
casita state sensor.thermostat_temperature # one entity + attributes
casita area "Front Porch"
casita overview
casita log --since 6 # house-wide recent activity
casita log light.front_porch --since 24 # one entity: history + logbook
For a point-in-time question ("is X on right now?"), narrow and force
freshness: bare text find spans domains (it can pull in automations, scenes, or
update entities that merely mention the word) and may serve state up to the ~30s
cache TTL. Add --domain to isolate the physical thing and --fresh to request a
live re-pull:
casita find porch --domain light --fresh # only lights, live state, no noise
Then verify the freshness you asked for rather than assuming it: confirm the
envelope reports state_stale:false (low state_age_s) before answering as
definitively current. If it still reads stale, the live pull hasn't landed —
re-query, or tell the user you couldn't confirm live state and lean on
last_changed. (Freshness honesty is load-bearing for exactly this class of
question; never assert "on right now" off a snapshot the envelope flags as stale.)
Attention sweep (the ambient job)
Casita is an attention layer, not just Q&A. To proactively surface what's worth the owner's notice, run a sweep and report ONLY the exceptions (don't echo the whole house):
# The three curated exception views
Установить casita в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл casita?
Read a Home Assistant home through the casita CLI: what is on, sensor readings, what needs attention, why something changed. Runs owner-approved scripts. Use when the user asks about their home or Home Assistant: lights, locks, climate, plants, EV, irrigation, energy, rooms, 'is X on', 'how warm is it', 'what changed', 'turn off the porch light'.
Как установить скилл casita?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл casita запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic