• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

pieter/homebridge-miio-gateway: Xiaomi Smart Home Gateway support for HomeBridge ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

pieter/homebridge-miio-gateway

开源软件地址:

https://github.com/pieter/homebridge-miio-gateway

开源编程语言:

JavaScript 100.0%

开源软件介绍:

HomeBridge Xiaomi Gateway support through miio

This package provides support for Xiaomi Gateway and attached devices, like switches and temperature sensors, in homebridge.

There are many similar packages, like the following:

Why create another package?

Most of these plugins have their own protocol parsing logic, which can be a bit of a hit-and-miss. In my case, this didn't work because the plugins seem to either depend on multicast, or don't allow you to bind to a specific source address.

By using miio, a gateway can be configured using its IP Address and token (if necessary), which means multicast isn't required. Miio seems to be more stable than the other implementations, at least for me.

What is suppported?

This plugin currently supports:

  • Humidity / Temperature sensors
  • Motions Sensors ('Human Body Detector' in Xiaomi-speak)
  • Switches (I tested the round one, but others should work as well)
  • Power Plugs
  • Gateway light

Configuration

First you'll need to enable local access in the Xiaomi Mi Home app. Here's how that works on iOS:

  • Select your gateway
  • Go to about
  • Tap a few times quickly below the last item. This should cause some extra menu options to show up.
  • Select the second new option and toggle the switch. Hit 'save' at the bottom, then go back
  • Select the third option and write down the ip address and token

Now add the plugin to your homebridge config:

"platforms": [
  {
    "platform": "XiaomiMiioGateway",
    "gateways": [
      {
        "address": "192.168.1.XXX",
        "token": "0ab9152c80b94827960db8c6ef49ee39"
      }
    ]
  },
  ...
]

Check out the plugin locally, and start homebridge. It should show the found devices in the log. Use homebridge -D to get more debug output.

Note: right now this library depends on a few fixes required in miio, which is why it's not available on NPM yet.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap