Skip to content
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

请添加对小米猫眼的支持 谢谢 #94

Closed
jsfer888 opened this issue May 27, 2021 · 4 comments
Closed

请添加对小米猫眼的支持 谢谢 #94

jsfer888 opened this issue May 27, 2021 · 4 comments
Labels
bug Something isn't working fixed bug fixed

Comments

@jsfer888
Copy link

{"status":"released","model":"loock.cateye.v02","version":1,"type":"urn:miot-spec-v2:device:video-doorbell:0000A03A:loock-v02:1"}

@al-one
Copy link
Owner

al-one commented Jun 4, 2021

猫眼是已经支持的设备类型,请通过账号集成,但是通常只会创建一个电量传感器,原因是本插件是通过轮询的方式获取数据,对实时性有要求的数据无法及时获取。
而猫眼/门铃类设备通过有人时才会联网,因此可以通过ping设备IP检测是否有人在门前:

binary_sensor:
  # https://www.home-assistant.io/integrations/ping#binary-sensor
  - platform: ping
    host: 192.168.lan.ip
    name: cateye_ping
    count: 1
    scan_interval: 2

@jsfer888
Copy link
Author

jsfer888 commented Jun 7, 2021

这款门铃使用ping监测的时候是一直联网状态,我看过了目前插件支持的型号好像是loock.cateye.v01,我这款通过插件添加后无任何实体体现。

@al-one
Copy link
Owner

al-one commented Jun 7, 2021

麻烦加下QQ群:198841186 联系我。

al-one added a commit that referenced this issue Jun 8, 2021
@al-one
Copy link
Owner

al-one commented Jun 8, 2021

由于你的猫眼miot-spec协议中没有定义video-doorbell服务,导致之前的版本不支持该设备。
现已支持,但根据spec协议的定义,仅支持剩余电量传感器,可以升级到master最新的提交:525e85d 体验。

@al-one al-one added bug Something isn't working fixed bug fixed labels Jun 8, 2021
@al-one al-one closed this as completed Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed bug fixed
Projects
None yet
Development

No branches or pull requests

2 participants