Look up how Home Assistant behaves in its docs and source, write automations and scripts the current way, preferring purpose-specific triggers, conditions and actions such as light.turned_on over templates, and organise what you add with labels, categories and areas. Use when explaining why an automation ran, how an integration, trigger, condition, action or entity state works, when writing or changing an automation, script or helper, or when adding or organising devices and entities.
Ships in ha-bridge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill is the reference half: how Home Assistant works and how to write for it. The ha-bridge-cli skill is the hands: it reads configs, state, history and logs, tests triggers and conditions, and saves automations and scripts. Load both when you diagnose or change a real home. When the agent has an ha-bridge Code Mode namespace, use its tools for the ha-bridge commands below.
platform: became trigger:, and triggers and conditions gained purpose-specific forms.triggers, conditions and actions keys with trigger: and action: in each item.Use the search and fetch tools you have against the sites below, for example a web search limited to site:home-assistant.io, then fetch the page. Use the best way in that you find for each site.
| What | Where |
|---|---|
| An integration: its entities, actions, triggers, options and known limits | https://www.home-assistant.io/integrations/<domain>/ |
| Triggers, conditions, actions, modes and templating in automations | https://www.home-assistant.io/docs/automation/ (trigger/, condition/, action/, modes/, templating/) |
| Scripts and their actions | https://www.home-assistant.io/docs/scripts/ |
| Templates | https://www.home-assistant.io/docs/configuration/templating/ |
| Release notes, for when something changed | https://www.home-assistant.io/blog/categories/release-notes/ |
| APIs, integration internals, architecture and frontend | https://contributors.home-assistant.io/ (start at llms.txt; /core/, /frontend/, /apps/, /architecture/) |
| Current and former names of a term (service to action, add-on to app) | https://contributors.home-assistant.io/glossary/ |
| Developer-facing changes to APIs and behaviour | https://contributors.home-assistant.io/blog/ |
contributors.home-assistant.io replaced developers.home-assistant.io, whose links redirect there. Add index.md to any of its page URLs for Markdown, or read its source in the home-assistant/contributors.home-assistant.io repository on GitHub (src/content/docs/<area>/, blog posts in src/content/blog/) when you have a GitHub tool. Its pages and blog help you find what changed and why, but rely on Core's source for what the code does.
The docs' sources are in the home-assistant/home-assistant.io repository on GitHub (source/_integrations/<domain>.markdown, source/_docs/...), which are easier to read than the HTML when you have a GitHub tool.
The docs can lag behind Core. For what the installed version accepts, Core's source in home-assistant/core is the authority:
homeassistant/components/<domain>/triggers.yaml and conditions.yaml: the purpose-specific triggers and conditions and their options.homeassistant/components/<domain>/services.yaml: each action's fields.homeassistant/components/<domain>/strings.json: the names the UI shows for all of them.Read the tag for the installed version, such as 2026.10.0, rather than dev. On installs with a Supervisor, ha-bridge get update.home_assistant_core_update --field attributes.installed_version gives it.
Home Assistant has triggers and conditions named for what they mean, such as light.turned_on, door.opened, sun.sunrise and light.is_on, alongside the general state, numeric_state, sun and template ones. They read better, take targets (entities, devices, areas, floors and labels) and cover cases that need several general triggers. Prefer them, and fall back to the general ones only when no purpose-specific one fits or the installed Home Assistant doesn't have it.
They take a target and their settings under options:
triggers:
- trigger: light.turned_on
target:
area_id: office
options:
behavior: each # each, first or all lights in the target
for: "00:01:00"
- trigger: sun.sunrise
options:
offset:
minutes: 30
offset_type: after
conditions:
- condition: light.is_on
target:
area_id: office
options:
behavior: any # any or all lights in the target
- condition: sun.is_up
triggers.yaml and conditions.yaml, such as light: turned_on, turned_off, brightness_changed, brightness_crossed_threshold, and the conditions is_on, is_off and is_brightness. Many are named for device classes rather than domains: door, window, garage_door, motion, occupancy, temperature, humidity, illuminance, power and battery.power.crossed_threshold ignore changes from unavailable or unknown, so a device coming back online doesn't fire them; a numeric_state trigger needs a template condition on trigger.from_state for the same result. Check the trigger's code in homeassistant/helpers/trigger/ when it matters.numeric_state or state with attribute, for, not_from or not_to, a domain's own action rather than a generic one, or a helper entity (such as a threshold, derivative or group). Keep templates for what genuinely needs one, such as message text built from several states.behavior is each (fire for every target entity), first (when the first one changes) or all (when the last one does). A condition's is any or all.ha-bridge condition test '<condition>' checks a condition now, and ha-bridge trigger watch '<trigger>' prints each time a trigger fires. Then check the whole config with ha-bridge automation config validate -f <file> (or script config validate), which also catches entities and actions that don't exist, and save with ha-bridge automation config create or update.ha-bridge automation config get <automation>), which has the exact triggers, offsets and conditions. Don't infer an offset from timings.ha-bridge logbook get and history get, for when it ran and what changed.sun.sun's state follows the sun's elevation, which Core only recalculates every few minutes (every 2 near the horizon), so its last_changed can be minutes after the real sunrise or sunset. For an event's exact time, read the history of sensor.sun_next_rising, sensor.sun_next_setting, sensor.sun_next_dawn or sensor.sun_next_dusk: the value before it moved on to the next day is when the event happened. Sun triggers fire at the calculated time plus any offset, not when sun.sun changes.closing while its position rises or positions arriving late, come from the integration or the device, not from ha-bridge or the automation. Check the integration's docs page for known limits, and its issues on GitHub.automation config update and script config update replace the whole config. Start from config get, change what's needed, and keep the id and alias.automations.yaml and scripts in scripts.yaml can be changed this way. Ones in configuration.yaml or packages have to be edited in their files.if, then and else rather than choose, as it's easier to read. Keep choose for three or more.An automation, script, helper or device you add or change isn't finished until it's organised: labels and areas make it something triggers, actions, dashboards and searches can target, and categories keep the settings lists readable. The ha-bridge-cli skill has the commands.
Lighting and the scripts' Lighting are different categories.Follow the home's own scheme:
Appliances, Energy and Drinks on the device.Desktop, and its power usage and energy sensors also get Energy, so they sit with the home's other electricity sensors without the whole computer counting as energy. The same goes for a power or energy sensor in any large integration whose device is about something else, such as a printer, a server or a TV.power binary sensor says whether something is on, and a phone's battery power or calories burned aren't the home's electricity.Desktop, the category Computers and the labels Work, Desktop and Notification; one that restores lights after a reconnect has the area House, the category Lighting and the labels HA Health and Lighting - Other.target: label_id: energy covers everything with that label, including what's added later, where a list of entities goes stale.What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
Other plugins' skills for the same job
/ha-bridge:home-assistantfrom ha-bridge
npx claudepluginhub timmo001/ha-bridge --plugin ha-bridge2 plugins in one repository ship this exact skill · first indexed Nov 27, 2026