4.0是4.0 master是master 不是一回事啊。
等不了作者更新版本,着急用,建议自己创建converter文件
[基础教程] Xiaomi Gateway 3添加不在支持列表中的设备
github已经有人提交pr,有现成代码,直接复制到自己的converter文件里面
{
# https://home.miot-spec.com/spec/xiaomi.sensor_occupy.03
18051: ["Xiaomi", "Occupancy Sensor", "XMOSB01XS", "xiaomi.sensor_occupy.03"],
"spec": [
# main sensors
BoolConv("occupancy", "binary_sensor", mi="2.p.1078"),#Tested
BaseConv("illuminance", "sensor", mi="2.p.1005"),#Tested
# other sensors
BaseConv("battery", "sensor", mi="3.p.1003", entity=ENTITY_LAZY),
],
}
|