本帖最后由 hungheo 于 2024-5-23 09:10 编辑
去https://home.miot-spec.com/这个网页找到你的设备,找到对应 SIID PIID ,然后参照类似的改一下就OK,论坛有很多人分享过教程的比如:
# https://home.miot-spec.com/spec/jymc.light.falmp
# https://home.miot-spec.com/spec/ftd.light.ftdlmp
10729: [None, "Mesh Light", "jymc.light.falmp"],
12066: [None, "Mesh Light", "ftd.light.ftdlmp"],
"spec": [
BaseConv("light", "light", mi="2.p.1"),
BrightnessConv("brightness", mi="2.p.2", max=100),
ColorTempKelvin("color_temp", mi="2.p.3", mink=3000, maxk=6500),
BoolConv("flex_switch", "switch", mi="2.p.4"), # config
MapConv("mode", "select", mi="2.p.5", map={0: "温馨", 1: "影院", 2: "阅读", 3: "月光", 4: "会客", 5: "休闲", 6: "办公", 255: "默认"}),
],
里面的“mi=2.p.1”,意思就是SIID是2,PIID是1
没有指定这个是没办法加载出来的
|