-
-
Notifications
You must be signed in to change notification settings - Fork 718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
小米厨下式净水器无法获取滤芯寿命等信息 型号:yunmi.waterpuri.lx3 #247
Comments
由于该设备的miot-spec规格中仅定义了滤芯已使用时长属性,没有定义剩余时长相关属性,因此无法通过miot协议获取剩余寿命。 |
感谢回复 |
还想请教一个问题,既然是这样的话,那米家app上面展示的剩余时长和百分比是怎么得来的呢?是否有某种曲线救国的办法实现这个显示呢? |
设备本身是有剩余寿命属性的,但是没有通过miot协议暴露出来。曲线救国的方法就是上面提到的 #218 (comment) ,不过需要你自己动手。 |
我理解也就是说我去通过哪个apk开启debug模式,然后拿到属性的名称,然后自己自定义上这个属性就ok了对么? |
是的。但是通过上面的方法获取的属性不是作为单独的实体,而是存在于实体状态的属性中。你可能还需要template将属性作为传感器实体,参考:#223 (comment) |
这个我会处理,非常感谢 |
由于没有andorod设备,只好去github找别人的代码,发现 这里 有自定义的properties 然后配置 sensor.yunmi_lx3_e256_water_purifier:
miio_props: f1_totaltime,f2_totaltime,f3_totaltime,f4_totaltime 无法获取数据,后来发现需要修改成 sensor.yunmi_lx3_e256_water_purifier:
miio_cloud_props: f1_totaltime,f2_totaltime,f3_totaltime,f4_totaltime _即可,剩下的就好办了,在这里备忘一下,哈哈 |
自定义属性 sensor.yunmi_lx3_e256_water_purifier:
miio_properties: f1_totaltime,f2_totaltime,f3_totaltime,f4_totaltime,,f5_totaltime,f6_totaltime,f7_totaltime |
|
一共拿到这么些传感器,没有滤芯使用寿命,代码中也查不到lx3这个型号😅
The text was updated successfully, but these errors were encountered: