当前位置:网站首页>Zhiting doesn't use home assistant to connect Xiaomi smart home to homekit

Zhiting doesn't use home assistant to connect Xiaomi smart home to homekit

2022-07-07 14:48:00 51CTO

First quote "Robot" Dissuade words : Accustomed to the rice home system , Including Mi family app、 I love my classmates and so on , Don't bother ; Used to buying finished products , Buy directly  HomeKit  Certified products , Don't bother ; Others are bored when they see the tutorial , Don't bother ; Don't toss about anything else that you don't want to toss about .


This method is not difficult , But there are few supported devices , If there are more Xiaomi smart home devices at home , If there is no green rice gateway , Just forget it .


The method is through the open source platform zhiting  Smart Assistant  Mounted on  X86  Host or Qunhui and other devices , Then join  HomeKit  The plug-in package , Cooperate with the code tools in zhiting's open source documents to access Apple  HomeKit , Personally, I think this method is simpler than other methods .


The supported brands are as follows :

 Zhiting no Home Assistant Let Xiaomi smart home access HomeKit_ The new version

Each device includes similar devices of other brands , For example, smart lights include Mi Jia 、 Huawei 、 Green rice 、HomeKit  Of , But not every device can be added perfectly . The solution needs to be tested constantly 、 adjustment , So if there is no installed hardware , There may be no need to buy specifically .


What Xiaobian prepares is X86 host (linux host )、dockerdocker-compose. Create your own docker-compose File run

Select a directory to store SA Required documents , Execute the following command :

      
      
wget - O smartassistant. zip https: //github.com/zhiting-tech/smartassistant/releases/download/v2.0.2/smartassistant.2.0.2.zip && unzip smartassistant.zip

cd zt - smartassistant

docker - compose up
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.


remarks :

You can use the latest version of  ​ Release address :https://github.com/zhiting-tech/smartassistant/releases, Get the latest version zip file


Test run

After the service is started, you can check through the following command SA The state of :

      
      
curl http: //localhost:9020/api/check
  • 1.


If the following is returned, the service is running and not bound

      
      
{ "status": 0, "reason": " success ", "data":{ "is_bind": false, "revision": ""}}
  • 1.


Open zhiting family cloud APP , Click on 【 Add smart devices 】 Find out SA


 Zhiting no Home Assistant Let Xiaomi smart home access HomeKit_ Smart home _02



Choose SA, Click on 【 add to 】


 Zhiting no Home Assistant Let Xiaomi smart home access HomeKit_ The new version _03



Wait for the device to connect


 Zhiting no Home Assistant Let Xiaomi smart home access HomeKit_docker_04



Set whether user credentials can be retrieved


 Zhiting no Home Assistant Let Xiaomi smart home access HomeKit_ Smart home _05



Device added successfully


 Zhiting no Home Assistant Let Xiaomi smart home access HomeKit_ The new version _06



Click on   my   page ,【 Support the brand 】, The interface will list SA Some built-in brand plug-ins


 Zhiting no Home Assistant Let Xiaomi smart home access HomeKit_ The new version _07



Click on 【HomeKit】 Add the brand plug-in package


 Zhiting no Home Assistant Let Xiaomi smart home access HomeKit_docker_08




 Zhiting no Home Assistant Let Xiaomi smart home access HomeKit_ Smart home _09


After adding the connection successfully, you can operate the control HomeKit Equipment .

原网站

版权声明
本文为[51CTO]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207071233108519.html