npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

homebridge-smarthome

v1.1.3

Published

this is a homebridge plugin for mijia eco-chain but also a management app provide web and restapi to manage your mijia eco-chain,you can control and monitor your accessory via apple's homekit or the webapp

Downloads

45

Readme

homebridge plugin and webapp for smarthome

npm package

npm npm Dependency Status

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.