用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/al-one/hass-xiaomi-miot --skill miot-docs命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | miot-docs |
| description | Xiaomi Miot documentation and helper. Recommended to use when users submit an issue/PR. |
npx -y mcporter call mcp.deepwiki.com/mcp.ask_question --timeout 120000 --args '{
"repoName": "al-one/hass-xiaomi-miot",
"question": "How to adding entities to a device ?"
}'
# List MCP servers
npx -y mcporter --config .mcp.json list
# List MCP tools
npx -y mcporter --config .mcp.json list <server_name>
npx -y mcporter --config .mcp.json list tools
# Call MCP tool
npx -y mcporter --config .mcp.json call <server>.<tool> --args '{"key":"val"}'
npx -y mcporter --config .mcp.json call tools.device_specs --args '{"model":"brand.type.model"}'
mcporterTo improve compatibility, use npx -y mcporter instead of mcporter when executing commands.
To adding entities to a device in the Xiaomi MIoT integration, you'll need to modify the DEVICE_CUSTOMIZES dictionary in the device_customizes.py file.
Add your device model to the DEVICE_CUSTOMIZES dictionary following the existing pattern:
DEVICE_CUSTOMIZES = {
# ... existing devices ...
'your.device.model': {
'sensor_properties': 'temperature,relative_humidity',
'switch_properties': 'uv,switch',
'select_properties': 'mode',
# Add more entity mappings as needed
},
}
More customization options can be found at https://github.com/al-one/hass-xiaomi-miot/issues/600
| Option | Description | Example |
|---|---|---|
sensor_properties | Properties to expose as sensors | temperature,humidity |
binary_sensor_properties | Properties to expose as binary sensors | motion_detected,door_state |
switch_properties | Properties to expose as switches | on,night_light |
select_properties | Properties to expose as selects | mode,fan_level |
number_properties | Properties to expose as numbers | target_temperature,volume |
button_actions | Actions to expose as buttons | reset_filter_life |
To find the correct property names for your device:
tools.device_specs MCP tool to get device specifications-) with underscores (_) in service/property/action namesexclude_miot_properties to improve performance by excluding unused propertieschunk_coordinators to optimize polling intervals*.aircondition.* for all air conditioners)基于 SOC 职业分类