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-re-yeelight

v0.0.11

Published

Mi Yeelight plugin for homebridge: https://github.com/nfarina/homebridge

Downloads

7

Readme

homebridge-re-yeelight

npm version

Yeelight plugin for homebridge(Rewrited)

Thanks for nfarina(the author of homebridge), OpenMiHome, aholstenson(the author of miio), all other developer and testers.

欢迎加入我们的QQ群 545171648 讨论
QQ Group:545171648
Telegram Group: https://t.me/joinchat/EujYfA-JKSwpRlXURD1t6g

Supported Types

  1. ColorLEDBulb(Yeelight智能灯泡)
  2. DeskLamp(Yeelight台灯)
  3. ColorLedStrip(Yeelight彩光灯带)
  4. CeilingLamp(Yeelight吸顶灯)
  5. WhiteBulb(Yeelight白光灯泡)

Installation

  1. Install HomeBridge, please follow it's README.
    If you are using Raspberry Pi, please read Running-HomeBridge-on-a-Raspberry-Pi.
    如果你能阅读中文,你可以阅读 homebridge非官方安装指南.
  2. Make sure you can see HomeBridge in your iOS devices, if not, please go back to step 1.
  3. Install packages.
  4. Install Plugin.

I suggest you to turn on UpdateTimer, it will not send too much heartbeat packet.

npm install -g miio homebridge-re-yeelight

Configuration

"platforms": [
    {
        "platform": "ReYeelightPlatform",
        "deviceCfgs": [{
            "type": "ColorLEDBulb",
            "ip": "192.168.50.xxx",
            "token": "xxxxxxxxx",
            "Name": "LED Bulb",
            "updatetimer": true,
            "interval": 5
        },{
            "type": "ColorLEDStrip",
            "ip": "192.168.50.xxx",
            "token": "xxxxxxxxx",
            "Name": "LED Strip",
            "updatetimer": true,
            "interval": 5
        },{
            "type": "DeskLamp",
            "ip": "192.168.50.xxx",
            "token": "xxxxxxxxx",
            "Name": "Desk Lamp",
            "updatetimer": true,
            "interval": 5
        },{
            "type": "CeilingLamp",
            "ip": "192.168.50.xxx",
            "token": "xxxxxxxxx",
            "Name": "Ceiling Lamp",
            "updatetimer": true,
            "interval": 5
        },{
            "type": "WhiteBulb",
            "ip": "192.168.50.xxx",
            "token": "xxxxxxxxx",
            "Name": "White Bulb",
            "updatetimer": true,
            "interval": 5
        }]
    }]

Get token

Download miio2.db From your android device - path: /data/data/com.xiaomi.smarthome/databases/miio2.db
Use http://miio2.yinhh.com/ to read it
Or You can
Open command prompt or terminal. Run following command:

miio --discover

Wait until you get output similar to this:

Device ID: xxxxxxxx   
Model info: Unknown   
Address: 192.168.88.xx   
Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx via auto-token   
Support: Unknown   

"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" is token.
If token is "???", then reset device and connect device created Wi-Fi hotspot.
Run following command:

miio --discover --sync

Wait until you get output.
For more information about token, please refer to OpenMiHome and miio.

Version Logs

0.0.11

  1. add QQ and TG Group

0.0.8

  1. bug fix

0.0.7

  1. fix the bug caused by class name

0.0.6

  1. add support for WhiteBulb

0.0.5

  1. add support for CeilingLamp

0.0.4

  1. add Support for LedStrip And Rewrite code

0.0.3

  1. add Support for Desklamp

0.0.2

  1. No Change, Just emmmmmmmmmm

0.0.1

  1. add support for ColourLEDBulb.