Replies: 1 comment
-
|
template 是一个方法,也可以在 xiaomi_home/miot/specs/spec_add.json 第二行增加以下内容(注意末尾的逗号): "urn:miot-spec-v2:device:bath-heater:0000A028:xiaomi-na2:2": [
{
"iid": 11,
"type": "urn:miot-spec-v2:service:env:0000780A:xiaomi-na2:1",
"description": "Environment",
"properties": [
{
"iid": 7,
"type": "urn:miot-spec-v2:property:temperature:00000020:xiaomi-na2:1",
"description": "Temperature",
"format": "int16",
"access": [
"read",
"notify"
],
"unit": "celsius",
"value-range": [
-30,
100,
1
]
}
]
}
],修改文件后,重启 HA,选择 xiaomi_home > 配置 > 更新实体转换规则,可在 Climate 实体之外生成一个温度传感器。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
有湿度传感器但是没有温度传感器,温度集成在了浴霸设备里,目前要自己手动创建一个 template 转化出一个温度传感器来。


Beta Was this translation helpful? Give feedback.
All reactions