/home-assistant-mgmt:device-metadata-scanfrom home-assistant-mgmt
Scan Home Assistant devices and auto-fill Device Metadata (protocol, hub, device type, power, battery, cloud dependency); dry run first.
Ships in home-assistant-mgmt. 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.
Fills the empty fields of Device Metadata records with what can be inferred from Home Assistant. It never
overwrites a stored value. Connection setup is the same as the device-metadata-install skill (config at
${CLAUDE_USER_DATA:-${XDG_DATA_HOME:-$HOME/.local/share}/claude-plugins}/ha-device-metadata/config.json, HA_URL +
token env var).
uv run ${CLAUDE_PLUGIN_ROOT}/scripts/dm.py scan # dry run, all devices
uv run ${CLAUDE_PLUGIN_ROOT}/scripts/dm.py scan --protocol Zigbee # only devices inferred as Zigbee
uv run ${CLAUDE_PLUGIN_ROOT}/scripts/dm.py scan --integration zha --search kitchen
uv run ${CLAUDE_PLUGIN_ROOT}/scripts/dm.py scan --protocol Zigbee --apply
Output JSON: devices_to_fill, and plan[] with name, fill (field → value) and why (field → evidence).
| Field | Evidence |
|---|---|
protocols, hub | Zigbee2MQTT identifiers on MQTT devices; integration (zha, deconz, hue, zwave_js, matter, BLE integrations, shelly, tplink, tuya, tasmota, wled, broadlink) |
cloud_dependency | integration iot_class: cloud_* → Cloud only; local_* → Local only, but only when the radio was recognised (a local integration like mobile_app says nothing about the device) |
device_type | name/model keywords first (siren, smoke, carbon monoxide, leak, doorbell, plug), then battery devices with no controllable entities → Button / remote, then entity domains (siren, lock, camera, climate, cover, light, media_player, switch, sensors) |
power_source, battery_type, battery_quantity | Battery Notes type sensor (e.g. 2× AAA), else a battery-class sensor → Battery (replaceable) |
Light capability needs no scan. The integration derives it live from supported_color_modes and keeps the
capability groups itself.
--apply, then run the dry run again and confirm devices_to_fill is 0.dm.py set <device_id> '{"device_type": "Siren"}'. If the same mistake would recur for other users, improve the
rules in scripts/dm.py (KEYWORD_TYPES, INTEGRATION_RULES) and contribute it back.device-metadata-fill-in skill for the fields only a human knows (description, function, exact location).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
14 skills in this plugin
/alarmo-actionsManage Alarmo actions on Home Assistant - sirens on trigger and off on disarm, notifications, enable/disable, without arming./alarmo-armArm or disarm Alarmo on Home Assistant (away/home/night/vacation) safely, and run a supervised alarm test without sirens./alarmo-sensorsAdd, tune or remove Alarmo sensors (door, window, motion, tamper, smoke/CO) on Home Assistant; find candidate binary sensors./alarmo-setupInstall and set up Alarmo on Home Assistant - HACS install, area name, arm modes with exit/entry/trigger times, global code settings./alarmo-statusShow Alarmo alarm status on Home Assistant - panel state, open sensors, modes, sensors, siren/notification actions, users - and readiness to arm./alarmo-usersManage Alarmo users and PIN codes on Home Assistant - list, rights, enable/disable, remove; codes are typed by the user, never the agent.home-assistant-mgmt@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin home-assistant-mgmt