当前位置: 首页 > 软件库 > 其他开源 > 物联网 >

homebridge-smarthome

授权协议 MIT License
开发语言 JavaScript
所属分类 其他开源、 物联网
软件类型 开源软件
地区 不详
投 递 者 壤驷鸿
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

homebridge plugin and webapp for smarthome

npm package

mijia & broadlink & more...

Thanks for

  1. snOOrz(the author of homebridge-aqara)
  2. YinHangCode(the author of homebridge-mi-aqara)
  3. aholstenson(the author of miio)
  4. all other developer and testers.

Note: I have only a part of these devices, some devices do not have been tested. If you find bugs, please submit them to issues.

Mijia & Aqara Accessory for homebridge.

Zigbee

Wifi

Supported Devices

  1. Gateway(LightSensor/Lightbulb[hue])
  2. Magent(ContactSensor)
  3. TemperatureAndHumiditySensor(HumiditySensor/TemperatureSensor)
  4. Motion(MotionSensor)
  5. Switch(StatelessProgrammableSwitch)
  6. Plug(Outlet)
  7. CtrlNeutral1/CtrlNeutral2(Switch)
  8. CtrlLN1/CtrlLN2(Switch)
  9. 86SW1/86SW2(StatelessProgrammableSwitch)
  10. 86Plug(Outlet)
  11. Smoke(SmokeSensor)
  12. Natgas(SmokeSensor)
  13. Curtain(WindowCovering)
  14. AirPurifier(AirPurifier/AirQualitySensor/TemperatureSensor/HumiditySensor/Lightbulb)
  15. Vacuum(Fan)
  16. PowerPlug(Outlet)
  17. PowerStrip(Outlet)
  18. Yeelight(Lightbulb[hue])
  19. Aqara Switch(Switch)
  20. Aqara Magent(ContactSensor)
  21. Aqara TemperatureAndHumiditySensorAndPressure(HumiditySensor/TemperatureSensor/CommunityTypes.AtmosphericPressureSensor)
  22. Aqara Motion(MotionSensor)

Broadlink Accessory for homebridge.

Supported Devices

  1. MP1(Outlet)
  2. MP2(Outlet)

Pre-Requirements

  1. Make sure you have V2 of the gateway. V1 has limited space so can't support this feature.
  2. Update gateway firmware to 1.4.1_141.0141 or later. You can contact @babymoney666 if your firmware is not up to date.

Installation

  1. Install HomeBridge, please follow it's README.
    If you are using Raspberry Pi, please read Running-HomeBridge-on-a-Raspberry-Pi.
  2. Make sure you can see HomeBridge in your iOS devices, if not, please go back to step 1.
  3. Download homebridge-smarthome to your local folder or npm i homebridge-smarthome.

Configuration

  1. Open Aqara gateway's settings, enable local network protocol.
    Please follow the steps in this thread: http://bbs.xiaomi.cn/t-13198850. It's in Chinese so you might need a translator to read it.
  2. To control the devices, put gateway's MAC address (lower case without colon) and password to ~/.homebridge/config.json.
  3. How to get device ip and token? see miio.
{
  "bridge": {
    "name": "SmartHome",
    "username": "CC:22:3D:E3:CE:30",
    "port": 51826,
    "pin": "031-45-154"
  },
    "platforms": [
    {
      "platform": "smarthome-mijia",
      "web": {
        "port": 8888
      },
      "mijia": {
        "sids": [
          "34ce0088faed"
        ],
        "passwords": [
          "75ED5A235C4A44D4"
        ],
        "devices": [
          {
            "sid": "Air Purifier 001",
            "name": "Air Purifier",
            "type": "wifi",
            "model": "air-purifier"
          },
          {
            "sid": "Power Plug 001",
            "name": "Power Plug",
            "type": "wifi",
            "model": "power-plug"
          },
          {
            "sid": "Power Strip 001",
            "name": "Power Strip",
            "type": "wifi",
            "model": "power-strip"
          },
          {
            "sid": "Yeelight 001",
            "name": "Yeelight",
            "type": "wifi",
            "model": "light"
          },
          {
            "sid": "Vacuum Cleaner 001",
            "name": "Vacuum Cleaner",
            "ip": "192.168.2.200",
            "token": "4ac2cd21f3e9272ab21a5c1fd4053ed9",
            "type": "wifi",
            "model": "vacuum"
          }
        ]
      }
    },
    {
      "platform": "smarthome-broadlink",
      "broadlink": {
        "devices": [
          {
            "name": "MP2",
            "type": "MP2",
            "mac": "34:EA:34:D9:FE:B3"
          }
        ]
      }
    }
  ]
}

Run it

homebridge -D

Version Logs

1.1.3

  1. mijia fix purifier type error.
  2. mijia fix multi getways.

1.1.2

  1. mijia fix yeelight missing miio require.

1.1.1

  1. mijia fix gateway lighthub.

1.1.0

  1. mijia fix air-purifier accessory(fix multi callback).

1.0.7

  1. mijia fix air-purifier accessory(remove some duplicated code).

1.0.6

  1. aqara magnet,motion,switch,temperature-humidity-pressure accessory.
  2. mijia change monitor.js->motion.js.
  3. mijia update miio.

1.0.5

  1. mijia yeelight accessory(bugfix).

1.0.4

  1. mijia yeelight accessory.
  2. mijia fix wifi device bug.

1.0.3

  1. mijia vacuum accessory.
  2. mijia powerplug accessory.
  3. mijia powerstrip accessory.

1.0.2

  1. mijia magnet sensor accessory.
  2. mijia ctrln1/ctrln2 switch accessory.
  3. mijia ctrlneutral1/ctrlneutral2 switch accessory.
  4. mijia motion sensor accessory.
  5. mijia plug/86plug plug accessory.
  6. mijia 86sw1/86sw2 switch accessory.
  7. mijia switch accessory.
  8. mijia smoke sensor accessory.
  9. mijia natgas sensor accessory.
  10. mijia air-purifier accessory.
  11. broadlink mp1/mp2 plug accessory.

1.0.1

  1. mijia gateway sensor accessory.
  2. mijia door and window sensor accessory.
  3. mijia temperature and humidity sensor accessory.
 相关资料
  • Homebridge 是一个轻量级 NodeJS 服务器,它模拟 iOS HomeKit API,提供从 HomeKit 到“智能家居”设备制造商提供的各种第三方 API 的基本桥接。通过 Homebridge 的桥接,可以让 Siri 控制完全不支持 HomeKit 的设备。 此外 Homebridge 支持插件。

  • homebridge-tplink-smarthome TPLink Smart Home Plugin for Homebridge. (formerly homebridge-hs100) Models Supported Plugs: HS100, HS103, HS105, HS107, HS110, HS300, KP105, KP303, KP400 Switches: HS200,

  • homebridge-vsx homebridge-vsx is a plugin made for homebridge,which allows switching on and off your Pioneer AV receiver. All AV receivers (VSX and SC),which work with the iControl AV5 App are support

  • homebridge-sesame Control and monitor your Sesame smart lock with HomeKit integration. Prerequisites Installation of Homebridge iOS 11 or later Sesame lock with enabled cloud integration Sesame Wifi A

  • homebridge-panasonictv A homebridge plugin for turning on and off your Panasonic Viera TV. The plugin also has experimental support for changing the volume and channel. These characteristics are not r

  • Quick Start | Contribute A Wake on Lan plugin for Homebridge Turn your PCs, laptops, servers and more on and off through Siri Quick Start To install the plugin, head over to the machine with Homebridg