一键导入
ha-translations-and-ids
Home Assistant translation_key and identifier practices—entity/device naming via translations, stable unique IDs, and migration tips.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Home Assistant translation_key and identifier practices—entity/device naming via translations, stable unique IDs, and migration tips.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Home Assistant ConfigFlow/OptionsFlow patterns—single-instance guard, schema validation, reload listeners, safe options handling without recursion.
Layered Home Assistant custom entity architecture—CoordinatorEntity bases, platform/category bases, registry-only platform files, translation-backed naming, stable IDs, and options reload wiring.
Patterns for building Home Assistant custom integrations that talk Modbus (TCP/RTU-over-TCP/serial): pymodbus device_id usage, safe polling/writing, pacing/backoff, encoding multi-register values, cached fallback, and translation-backed entities.
Testing patterns for Home Assistant custom components—coordinator and entity unit tests, register map coverage, write-path tests, and unique_id/device stability checks.
Diagnostics for Modbus in Home Assistant custom components—framing/extra-data errors, unit_id mismatches, pacing/timeouts, write contention, and logging patterns.
| name | ha-translations-and-ids |
| description | Home Assistant translation_key and identifier practices—entity/device naming via translations, stable unique IDs, and migration tips. |
| license | Complete terms in LICENSE.txt |
Use when fixing names/IDs in a custom component.
_attr_translation_key and _attr_has_entity_name=True; keep code names minimal.entity.<platform>.<translation_key>.name in translations JSON.