[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AB29XX11BKN264XNRS3XKB":3,"skill-same:01M7AB29XX11BKN264XNRS3XKB":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M7AB29XX11BKN264XNRS3XKB","ha-entity-platform",null,"Add or change a Home Assistant entity platform or an individual entity in this custom integration — sensor, binary_sensor, switch, button, number, select, fan, climate, cover, light, lock, and friends. Use when asked to \"add a sensor\", \"add a new entity\", \"add a platform\", \"expose \u003Cvalue> as an entity\", \"add an entity to the device\", \"make this entity diagnostic\", or when changing EntityDescription metadata, device classes, state classes, entity categories, or availability. Covers the platform directory layout, the coordinator-backed entity contract, unique IDs, device grouping, and the translation and validation steps that must follow. SYMPTOMS — load this if you are about to: hardcode `name=` or `icon=` in an EntityDescription instead of `translation_key`; omit `state_class` on a numeric measurement; call the API client from an entity property; set `_attr_unique_id` or `_attr_device_info` in a platform entity; or put two entity classes in one file.","amg0\u002Fha_ksenia","amg0","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F16444411?v=4","01M7AAZDRNF8BXHM6GAN9QWJ41","01M7AAZDSEHKPEWK6PKK22S2NN",0,"MIT","https:\u002F\u002Fgithub.com\u002Famg0\u002Fha_ksenia\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fha-entity-platform\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ha-entity-platform\ndescription: >-\n  Add or change a Home Assistant entity platform or an individual entity in this custom integration — sensor,\n  binary_sensor, switch, button, number, select, fan, climate, cover, light, lock, and friends. Use when asked to\n  \"add a sensor\", \"add a new entity\", \"add a platform\", \"expose \u003Cvalue> as an entity\", \"add an entity to the\n  device\", \"make this entity diagnostic\", or when changing EntityDescription metadata, device classes, state\n  classes, entity categories, or availability. Covers the platform directory layout, the coordinator-backed entity\n  contract, unique IDs, device grouping, and the translation and validation steps that must follow. SYMPTOMS —\n  load this if you are about to: hardcode `name=` or `icon=` in an EntityDescription instead of `translation_key`;\n  omit `state_class` on a numeric measurement; call the API client from an entity property; set `_attr_unique_id`\n  or `_attr_device_info` in a platform entity; or put two entity classes in one file.\n---\n\n# Add or change an entity platform\n\nEntities are the user-visible surface of the integration. Getting the metadata right at creation time matters more than\nusual: unique IDs, device classes, and entity IDs are effectively permanent once a user has installed the integration.\n\n**Read [`blueprint.entities.instructions.md`](..\u002F..\u002Finstructions\u002Fblueprint.entities.instructions.md) first** —\nit holds the rules this procedure assumes: base-class inheritance and MRO, required `EntityDescription` fields, the\ncoordinator-only data rule, availability, device info fields, `PARALLEL_UPDATES`, and device registry ownership. Copilot\ninjects it automatically when you edit an entity file; other agents must open it. Python style is in\n[`blueprint.python.instructions.md`](..\u002F..\u002Finstructions\u002Fblueprint.python.instructions.md).\n\nThis skill is the procedure and the decisions — it does not restate those rules.\n\nBefore implementing a platform, read its row — required members and the trap it carries:\n\n| File                                                                           | Platforms                                                                                                                                                     |\n| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| [`references\u002Fsensors.md`](references\u002Fsensors.md)                               | `sensor`, `binary_sensor` — state class and unit rules                                                                                                        |\n| [`references\u002Fcontrols.md`](references\u002Fcontrols.md)                             | `switch`, `button`, `number`, `select`, `text`, `date`, `datetime`, `time`, `scene`, `siren`, `cover`, `valve`, `lock`, `alarm_control_panel`, `fan`, `light` |\n| [`references\u002Fclimate-and-appliances.md`](references\u002Fclimate-and-appliances.md) | `climate`, `water_heater`, `humidifier`, `vacuum`, `lawn_mower`, `media_player`                                                                               |\n| [`references\u002Fother-platforms.md`](references\u002Fother-platforms.md)               | `event`, `update`, `image`, `camera`, `device_tracker`, `notify`, `todo`, infrared and radio frequency consumers                                              |\n\nLifecycle hooks beyond `async_added_to_hass` — any platform: [`references\u002Flifecycle.md`](references\u002Flifecycle.md).\n\n## Before you write code\n\nClarify — ask the developer if any of this is missing:\n\n- Which platform (`sensor`, `switch`, …) and whether it already exists in the integration.\n- Which field of `coordinator.data` backs the entity, and its unit and value range.\n- Whether it is a primary entity or a diagnostic\u002Fconfig entity (`EntityCategory`).\n- For writable platforms: which API method performs the write.\n\nThen read the closest existing sibling — for a new sensor that is\n`custom_components\u002F\u003Cdomain>\u002Fsensor\u002Fair_quality.py`. Match it rather than inventing a second style.\n\n## Layout\n\nEach platform is a package, one entity class per file:\n\n```text\ncustom_components\u002F\u003Cdomain>\u002F\u003Cplatform>\u002F\n├── __init__.py        # async_setup_entry + aggregated ENTITY_DESCRIPTIONS\n└── \u003Cgroup>.py         # ENTITY_DESCRIPTIONS + entity class for one logical group\n```\n\nOnce a `value_fn` description carries the value lookup, one entity class serves every group on the platform, and\ncopying it per file would be the duplication `value_fn` exists to remove. Give it its own module and leave the group\nfiles holding descriptions only — this is what `sensor\u002F` does:\n\n```text\ncustom_components\u002F\u003Cdomain>\u002Fsensor\u002F\n├── __init__.py        # async_setup_entry + aggregated ENTITY_DESCRIPTIONS\n├── entity.py          # the description subclass and the single entity class\n├── air_quality.py     # ENTITY_DESCRIPTIONS only\n└── diagnostic.py      # ENTITY_DESCRIPTIONS only\n```\n\nKeep the first shape while a platform has one group, and split when a second class would otherwise be a copy of the\nfirst.\n\n## Procedure\n\n### 1. Decide the metadata, then write the descriptions\n\nThe mechanical rules are in the instructions file. What this step actually costs you is judgement:\n\n- **`key`** becomes part of the unique ID. Pick it once — renaming it later is a breaking change\n  ([`ha-breaking-changes`](..\u002Fha-breaking-changes\u002FSKILL.md)).\n- **Primary, diagnostic or config?** Anything a user would not put on a dashboard is\n  `EntityCategory.DIAGNOSTIC`. Useful to few and noisy for everyone else — a signal strength, a value that changes\n  every second — means disabled by default; hidden is something else. Which is which, and why the choice is final:\n  [Disabled and Hidden By Default](..\u002F..\u002Finstructions\u002Fblueprint.entities.instructions.md#disabled-and-hidden-by-default).\n- **Is there a matching `device_class`?** Check the platform's enum before inventing units or icons. A device class\n  buys unit conversion, correct icons and voice-assistant behaviour for free.\n- **Is the value a measurement?** Then it needs a `state_class`, or the user gets no history.\n\n### 2. Entity class\n\nImplement only the platform members and the value extraction; everything else comes from the base class.\n\n```python\nclass {ClassPrefix}AirQualitySensor(SensorEntity, {ClassPrefix}Entity):\n    \"\"\"Air quality sensor.\"\"\"\n\n    entity_description: {ClassPrefix}SensorEntityDescription\n\n    @property\n    def native_value(self) -> StateType:\n        \"\"\"Return the current value.\"\"\"\n        return self.entity_description.value_fn(self.coordinator.data)\n```\n\nA value that is simply missing from this poll is `unknown`, not `unavailable` — returning `None` above already does\nthat, and it keeps the entity usable in templates and automations.\n\nOnly override `available` when a single entity can genuinely be **gone** while the rest of the device is fine — a\nmissing key that means a missing sub-device. The base `CoordinatorEntity` already handles the whole-device case:\n\n```python\n@property\ndef available(self) -> bool:\n    \"\"\"Return True if the backing sub-device is still present.\"\"\"\n    return super().available and self.entity_description.key in self.coordinator.data\n```\n\n### 3. Register the platform\n\nFor a brand-new platform only:\n\n1. Add the `Platform.\u003CNAME>` member to the `PLATFORMS` list in `custom_components\u002F\u003Cdomain>\u002F__init__.py`\n   (keep the list alphabetical).\n2. Nothing else — `async_setup_entry` already forwards with `async_forward_entry_setups(entry, PLATFORMS)` and\n   `async_unload_entry` already tears down with `async_unload_platforms(entry, PLATFORMS)`.\n\n### 4. Device grouping\n\nThe base entity places every entity on the config entry's device. Only deviate when the integration genuinely models\nmore than one device, and then decide whether each one is a part of one product (a child device) or a separate\nproduct behind a hub (`via_device_id`) — the decision table and the single-owner rules are in\n[`device-registry.md`](..\u002Fha-modern-apis\u002Freferences\u002Fdevice-registry.md#hub-or-parts-via_device_id-versus-child-devices).\n\nWhen devices come and go at runtime (`dynamic-devices`), add entities from a coordinator listener that diffs\n`set(coordinator.data)` against a `known_devices` set. If the integration also removes devices that are gone\n(`stale-devices`), drop each removed ID from `known_devices` too — otherwise a device that returns is never added\nagain until the entry reloads. Both rules: [`quality-scale-rules.md`](..\u002Fha-quality-review\u002Freferences\u002Fquality-scale-rules.md).\n\n### 5. Translations\n\nAdd the `translation_key` under `entity.\u003Cplatform>.\u003Ckey>.name` in `translations\u002Fen.json`, plus `state` keys for enum\nsensors. Do not touch other language files. See [`ha-translations`](..\u002Fha-translations\u002FSKILL.md).\n\n### 6. Validate\n\n```bash\nscript\u002Flint && script\u002Ftype-check\nscript\u002Fhassfest\nscript\u002Ftest\n```\n\nThen restart Home Assistant (`.\u002Fscript\u002Fdevelop`) and confirm the entity appears with the expected name, unit, icon, and\ncategory. If it does not appear at all, switch to [`ha-coordinator-debug`](..\u002Fha-coordinator-debug\u002FSKILL.md).\n\n## Something happened, rather than something is\n\nFor a button press, a doorbell ring, a fault report — anything that **occurs** instead of **holds** — reach for an\n`event` entity, not a sensor.\n\n**The anti-pattern: do not represent an event as entity state.** A binary sensor that is `on` for 30 seconds after a\ndoorbell ring is wrong in both directions — it invents a duration the device never reported, and it loses a second\nring inside the window. `event` entities exist for exactly this.\n\nFiring on the event bus directly is the fallback for what does not fit an entity at all:\n\n- Event type is `\u003Cdomain>_event`; include the `device_id` from the device registry in the payload.\n- The wiring belongs in `__init__.py`, not in an entity — an entity that is disabled would never subscribe.\n- A device that **only** fires events still has to be registered in the device registry by hand; nothing else creates\n  it.\n\nListening is the mirror image: prefer a helper from `homeassistant.helpers.event` over `hass.bus.async_listen`, and\nwrap the unsubscribe callable every helper returns in `entry.async_on_unload(...)`.\n\n## Do not\n\n- Do not add an entity for data the coordinator does not already fetch — extend the coordinator first, or you will be\n  tempted to call the API from the entity.\n- Do not write `significant_change.py` or `reproduce_state.py` speculatively. The first only matters when the\n  integration's entities are exported to Google Assistant or Alexa and are noisy enough to need filtering\n  (`async_check_significant_change(hass, old_state, old_attrs, new_state, new_attrs, **kwargs) -> bool | None`). The\n  second is only for an integration that defines its **own** domain — entities added to an existing platform inherit\n  scene support from it for free.\n- Do not rename an existing `key`, `translation_key`, or unique ID without reading\n  [`ha-breaking-changes`](..\u002Fha-breaking-changes\u002FSKILL.md).\n- Do not skip the sibling-file read in step 0. Most \"new\" entities are a variation of one that already exists.\n- Do not raise `ConfigEntryNotReady` from a platform's `async_setup_entry` — the config entry setup has already\n  finished by then and nothing catches it.\n\nThe remaining hard rules are in\n[`blueprint.entities.instructions.md`](..\u002F..\u002Finstructions\u002Fblueprint.entities.instructions.md); the per-platform\nmembers are in the `references\u002F` files listed at the top.\n","# Add or change an entity platform\n\nEntities are the user-visible surface of the integration. Getting the metadata right at creation time matters more than\nusual: unique IDs, device classes, and entity IDs are effectively permanent once a user has installed the integration.\n\n**Read [`blueprint.entities.instructions.md`](..\u002F..\u002Finstructions\u002Fblueprint.entities.instructions.md) first** —\nit holds the rules this procedure assumes: base-class inheritance and MRO, required `EntityDescription` fields, the\ncoordinator-only data rule, availability, device info fields, `PARALLEL_UPDATES`, and device registry ownership. Copilot\ninjects it automatically when you edit an entity file; other agents must open it. Python style is in\n[`blueprint.python.instructions.md`](..\u002F..\u002Finstructions\u002Fblueprint.python.instructions.md).\n\nThis skill is the procedure and the decisions — it does not restate those rules.\n\nBefore implementing a platform, read its row — required members and the trap it carries:\n\n| File                                                                           | Platforms                                                                                                                                                     |\n| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| [`references\u002Fsensors.md`](references\u002Fsensors.md)                               | `sensor`, `binary_sensor` — state class and unit rules                                                                                                        |\n| [`references\u002Fcontrols.md`](references\u002Fcontrols.md)                             | `switch`, `button`, `number`, `select`, `text`, `date`, `datetime`, `time`, `scene`, `siren`, `cover`, `valve`, `lock`, `alarm_control_panel`, `fan`, `light` |\n| [`references\u002Fclimate-and-appliances.md`](references\u002Fclimate-and-appliances.md) | `climate`, `water_heater`, `humidifier`, `vacuum`, `lawn_mower`, `media_player`                                                                               |\n| [`references\u002Fother-platforms.md`](references\u002Fother-platforms.md)               | `event`, `update`, `image`, `camera`, `device_tracker`, `notify`, `todo`, infrared and radio frequency consumers                                              |\n\nLifecycle hooks beyond `async_added_to_hass` — any platform: [`references\u002Flifecycle.md`](references\u002Flifecycle.md).\n\n## Before you write code\n\nClarify — ask the developer if any of this is missing:\n\n- Which platform (`sensor`, `switch`, …) and whether it already exists in the integration.\n- Which field of `coordinator.data` backs the entity, and its unit and value range.\n- Whether it is a primary entity or a diagnostic\u002Fconfig entity (`EntityCategory`).\n- For writable platforms: which API method performs the write.\n\nThen read the closest existing sibling — for a new sensor that is\n`custom_components\u002F\u003Cdomain>\u002Fsensor\u002Fair_quality.py`. Match it rather than inventing a second style.\n\n## Layout\n\nEach platform is a package, one entity class per file:\n\n```text\ncustom_components\u002F\u003Cdomain>\u002F\u003Cplatform>\u002F\n├── __init__.py        # async_setup_entry + aggregated ENTITY_DESCRIPTIONS\n└── \u003Cgroup>.py         # ENTITY_DESCRIPTIONS + entity class for one logical group\n```\n\nOnce a `value_fn` description carries the value lookup, one entity class serves every group on the platform, and\ncopying it per file would be the duplication `value_fn` exists to remove. Give it its own module and leave the group\nfiles holding descriptions only — this is what `sensor\u002F` does:\n\n```text\ncustom_components\u002F\u003Cdomain>\u002Fsensor\u002F\n├── __init__.py        # async_setup_entry + aggregated ENTITY_DESCRIPTIONS\n├── entity.py          # the description subclass and the single entity class\n├── air_quality.py     # ENTITY_DESCRIPTIONS only\n└── diagnostic.py      # ENTITY_DESCRIPTIONS only\n```\n\nKeep the first shape while a platform has one group, and split when a second class would otherwise be a copy of the\nfirst.\n\n## Procedure\n\n### 1. Decide the metadata, then write the descriptions\n\nThe mechanical rules are in the instructions file. What this step actually costs you is judgement:\n\n- **`key`** becomes part of the unique ID. Pick it once — renaming it later is a breaking change\n  ([`ha-breaking-changes`](..\u002Fha-breaking-changes\u002FSKILL.md)).\n- **Primary, diagnostic or config?** Anything a user would not put on a dashboard is\n  `EntityCategory.DIAGNOSTIC`. Useful to few and noisy for everyone else — a signal strength, a value that changes\n  every second — means disabled by default; hidden is something else. Which is which, and why the choice is final:\n  [Disabled and Hidden By Default](..\u002F..\u002Finstructions\u002Fblueprint.entities.instructions.md#disabled-and-hidden-by-default).\n- **Is there a matching `device_class`?** Check the platform's enum before inventing units or icons. A device class\n  buys unit conversion, correct icons and voice-assistant behaviour for free.\n- **Is the value a measurement?** Then it needs a `state_class`, or the user gets no history.\n\n### 2. Entity class\n\nImplement only the platform members and the value extraction; everything else comes from the base class.\n\n```python\nclass {ClassPrefix}AirQualitySensor(SensorEntity, {ClassPrefix}Entity):\n    \"\"\"Air quality sensor.\"\"\"\n\n    entity_description: {ClassPrefix}SensorEntityDescription\n\n    @property\n    def native_value(self) -> StateType:\n        \"\"\"Return the current value.\"\"\"\n        return self.entity_description.value_fn(self.coordinator.data)\n```\n\nA value that is simply missing from this poll is `unknown`, not `unavailable` — returning `None` above already does\nthat, and it keeps the entity usable in templates and automations.\n\nOnly override `available` when a single entity can genuinely be **gone** while the rest of the device is fine — a\nmissing key that means a missing sub-device. The base `CoordinatorEntity` already handles the whole-device case:\n\n```python\n@property\ndef available(self) -> bool:\n    \"\"\"Return True if the backing sub-device is still present.\"\"\"\n    return super().available and self.entity_description.key in self.coordinator.data\n```\n\n### 3. Register the platform\n\nFor a brand-new platform only:\n\n1. Add the `Platform.\u003CNAME>` member to the `PLATFORMS` list in `custom_components\u002F\u003Cdomain>\u002F__init__.py`\n   (keep the list alphabetical).\n2. Nothing else — `async_setup_entry` already forwards with `async_forward_entry_setups(entry, PLATFORMS)` and\n   `async_unload_entry` already tears down with `async_unload_platforms(entry, PLATFORMS)`.\n\n### 4. Device grouping\n\nThe base entity places every entity on the config entry's device. Only deviate when the integration genuinely models\nmore than one device, and then decide whether each one is a part of one product (a child device) or a separate\nproduct behind a hub (`via_device_id`) — the decision table and the single-owner rules are in\n[`device-registry.md`](..\u002Fha-modern-apis\u002Freferences\u002Fdevice-registry.md#hub-or-parts-via_device_id-versus-child-devices).\n\nWhen devices come and go at runtime (`dynamic-devices`), add entities from a coordinator listener that diffs\n`set(coordinator.data)` against a `known_devices` set. If the integration also removes devices that are gone\n(`stale-devices`), drop each removed ID from `known_devices` too — otherwise a device that returns is never added\nagain until the entry reloads. Both rules: [`quality-scale-rules.md`](..\u002Fha-quality-review\u002Freferences\u002Fquality-scale-rules.md).\n\n### 5. Translations\n\nAdd the `translation_key` under `entity.\u003Cplatform>.\u003Ckey>.name` in `translations\u002Fen.json`, plus `state` keys for enum\nsensors. Do not touch other language files. See [`ha-translations`](..\u002Fha-translations\u002FSKILL.md).\n\n### 6. Validate\n\n```bash\nscript\u002Flint && script\u002Ftype-check\nscript\u002Fhassfest\nscript\u002Ftest\n```\n\nThen restart Home Assistant (`.\u002Fscript\u002Fdevelop`) and confirm the entity appears with the expected name, unit, icon, and\ncategory. If it does not appear at all, switch to [`ha-coordinator-debug`](..\u002Fha-coordinator-debug\u002FSKILL.md).\n\n## Something happened, rather than something is\n\nFor a button press, a doorbell ring, a fault report — anything that **occurs** instead of **holds** — reach for an\n`event` entity, not a sensor.\n\n**The anti-pattern: do not represent an event as entity state.** A binary sensor that is `on` for 30 seconds after a\ndoorbell ring is wrong in both directions — it invents a duration the device never reported, and it loses a second\nring inside the window. `event` entities exist for exactly this.\n\nFiring on the event bus directly is the fallback for what does not fit an entity at all:\n\n- Event type is `\u003Cdomain>_event`; include the `device_id` from the device registry in the payload.\n- The wiring belongs in `__init__.py`, not in an entity — an entity that is disabled would never subscribe.\n- A device that **only** fires events still has to be registered in the device registry by hand; nothing else creates\n  it.\n\nListening is the mirror image: prefer a helper from `homeassistant.helpers.event` over `hass.bus.async_listen`, and\nwrap the unsubscribe callable every helper returns in `entry.async_on_unload(...)`.\n\n## Do not\n\n- Do not add an entity for data the coordinator does not already fetch — extend the coordinator first, or you will be\n  tempted to call the API from the entity.\n- Do not write `significant_change.py` or `reproduce_state.py` speculatively. The first only matters when the\n  integration's entities are exported to Google Assistant or Alexa and are noisy enough to need filtering\n  (`async_check_significant_change(hass, old_state, old_attrs, new_state, new_attrs, **kwargs) -> bool | None`). The\n  second is only for an integration that defines its **own** domain — entities added to an existing platform inherit\n  scene support from it for free.\n- Do not rename an existing `key`, `translation_key`, or unique ID without reading\n  [`ha-breaking-changes`](..\u002Fha-breaking-changes\u002FSKILL.md).\n- Do not skip the sibling-file read in step 0. Most \"new\" entities are a variation of one that already exists.\n- Do not raise `ConfigEntryNotReady` from a platform's `async_setup_entry` — the config entry setup has already\n  finished by then and nothing catches it.\n\nThe remaining hard rules are in\n[`blueprint.entities.instructions.md`](..\u002F..\u002Finstructions\u002Fblueprint.entities.instructions.md); the per-platform\nmembers are in the `references\u002F` files listed at the top.\n",{"name":5,"description":7},"main","3a408474735fec0ac5d62b86fc842420a899e090",".agents\u002Fskills\u002Fha-entity-platform","https:\u002F\u002Fgithub.com\u002Famg0\u002Fha_ksenia","https:\u002F\u002Fgithub.com\u002Famg0","2026-11-15 01:01:02",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add amg0\u002Fha_ksenia --skill ha-entity-platform",{"tool":35,"command":36},"bunx","bunx skills add amg0\u002Fha_ksenia --skill ha-entity-platform",{"tool":38,"command":39},"pnpm","pnpm dlx skills add amg0\u002Fha_ksenia --skill ha-entity-platform","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Famg0\u002Fha_ksenia\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fha-entity-platform\u002FSKILL.md",true,[43,49,53,57,61,65],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"references\u002Fclimate-and-appliances.md","REFERENCE","参考文档",3280,"https:\u002F\u002Fgithub.com\u002Famg0\u002Fha_ksenia\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fha-entity-platform\u002Freferences\u002Fclimate-and-appliances.md",{"path":50,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fcontrols.md",6391,"https:\u002F\u002Fgithub.com\u002Famg0\u002Fha_ksenia\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fha-entity-platform\u002Freferences\u002Fcontrols.md",{"path":54,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Flifecycle.md",1414,"https:\u002F\u002Fgithub.com\u002Famg0\u002Fha_ksenia\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fha-entity-platform\u002Freferences\u002Flifecycle.md",{"path":58,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fother-platforms.md",7027,"https:\u002F\u002Fgithub.com\u002Famg0\u002Fha_ksenia\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fha-entity-platform\u002Freferences\u002Fother-platforms.md",{"path":62,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fplatform-members.md",8050,"https:\u002F\u002Fgithub.com\u002Famg0\u002Fha_ksenia\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fha-entity-platform\u002Freferences\u002Fplatform-members.md",{"path":66,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fsensors.md",3359,"https:\u002F\u002Fgithub.com\u002Famg0\u002Fha_ksenia\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fha-entity-platform\u002Freferences\u002Fsensors.md",[70,77,84,91,98,105],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":18},"01M7AB5RYA92GRR64CP6VMWV6Z","issues","Triage\u002Ffix the GitHub issue backlog via branch + PR, with auto-merge on green CI for this session.","https:\u002F\u002Fgithub.com\u002Famg0\u002Fha_ksenia\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fissues\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M7AB5G6DR1KGAPRT7JHDCD2Y","ha-translations","Add or fix user-facing strings for this Home Assistant custom integration — translations\u002Fen.json and other languages, icons.json, entity names and states, config flow labels and errors, service action descriptions, exception messages, and repair issue text. Use when asked to \"update translations\", \"add a translation key\", \"translate\", \"fix the entity name\", \"add strings for the new sensor\u002Faction\u002Foption\", \"add icons\", or when hassfest reports a missing or unused translation key. Covers the key structure, which keys each feature needs, placeholders, the icons.json contract, and the project's strict rule about only touching en.json. SYMPTOMS — load this if you are about to: write user-facing English into Python; edit a language file other than `en.json`; add an entity without its `entity.\u003Cplatform>.\u003Ckey>.name` key; skip `data_description` on a config flow field; or set `icon=` instead of using `icons.json`.","https:\u002F\u002Fgithub.com\u002Famg0\u002Fha_ksenia\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fha-translations\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M7AB56JBRMF19W4N2NG9Y5GW","ha-testing","Write, fix, or extend automated tests for this Home Assistant custom integration using pytest and pytest-homeassistant-custom-component. Use when asked to \"add tests\", \"write a test\", \"the tests fail\", \"improve coverage\", \"add a regression test\", \"test the config flow\", \"update snapshots\", or when a behavioural change needs verification before it can be called done. Covers the tests\u002F layout, the conftest.py fixtures this project needs, mocking the API client, config flow and entity test patterns, registry assertions, syrupy snapshots, freezing time, and the script\u002Ftest commands. SYMPTOMS — load this if you are about to: instantiate an entity class directly instead of asserting on `hass.states`; write a test without `enable_custom_integrations`; use `time.sleep` instead of `async_fire_time_changed`; silence a DeprecationWarning to make the suite pass; or commit a snapshot you have not read.","https:\u002F\u002Fgithub.com\u002Famg0\u002Fha_ksenia\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fha-testing\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":18},"01M7AB4V9XKDYRDCRHEA68GRZ5","ha-service-action","Add, change, or remove a Home Assistant service action (also called a \"service\" or \"action\") in this custom integration. Use when asked to \"add a service\", \"add an action\", \"expose X as a service call\", \"add a service that returns data\", \"make this callable from an automation\", or when editing services.yaml, the service_actions\u002F package, service schemas, service response data, or the async_setup() registration. Covers the services.yaml contract, probatio schemas, selectors, entity\u002Fdevice targeting, response data, translated error messages, and the Bronze quality-scale rule that actions must be registered in async_setup(). SYMPTOMS — load this if you are about to: register an action in `async_setup_entry()`; add a `services.yaml` field without a selector; add an `entity_id` field where `target:` belongs; raise a plain English `HomeAssistantError`; or swallow an action failure into a log line.","https:\u002F\u002Fgithub.com\u002Famg0\u002Fha_ksenia\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fha-service-action\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":18},"01M7AB4J65REZ9T9VS9MQH73CC","ha-release","Cut a release of this Home Assistant custom integration, or prepare the commits that feed it. Use when asked to \"release\", \"cut a version\", \"bump the version\", \"prepare release notes\", \"what will the next version be\", \"write a commit message\", \"why didn't release-please pick this up\", or when reviewing whether a change is user-facing. Covers the Conventional Commits rules commitlint enforces here, how release-please derives the version and changelog, the pre-1.0 bump rules, script\u002Fversion and script\u002Frelease-notes, skipping a commit from the notes, and the commit rules this project enforces for agents. SYMPTOMS — load this if you are about to: commit without an explicit request; offer to `git push`; label a user-facing fix as `chore` (chore, like every hidden type, never reaches the changelog and never triggers a release); write a commit subject over 100 characters or in sentence case; or edit the version in `manifest.json` by hand.","https:\u002F\u002Fgithub.com\u002Famg0\u002Fha_ksenia\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fha-release\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":18},"01M7AB48WMPGDK2REBC3WS8T32","ha-quality-review","Perform a structured quality review of this Home Assistant custom integration, either as a full audit or scoped to a diff. Use when asked to \"review the integration\", \"audit the code\", \"check quality scale\", \"are we bronze\u002Fsilver\u002Fgold\", \"is this ready to release\", \"review my changes\", \"what's missing before publishing\", or before opening a pull request that touches integration code. Covers running the automated gates first, then auditing architecture, the Integration Quality Scale rules, error handling, security, performance, user experience, and documentation — and reporting findings ranked by severity with concrete fixes. SYMPTOMS — load this if you are about to: report a review that only restates linter output; claim real-device testing that did not happen; give a finding without a file path and a fix; or judge quality without running `script\u002Fhassfest` and the test suite first.","https:\u002F\u002Fgithub.com\u002Famg0\u002Fha_ksenia\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fha-quality-review\u002FSKILL.md",[],[]]