All Projects → YinHangCode → Homebridge Mi Philips Light

YinHangCode / Homebridge Mi Philips Light

XiaoMi Philips light plugins for HomeBridge.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Homebridge Mi Philips Light

Homebridge Dafang
Homebridge Plugin for Xiaomi Dafang / Wyze Cam IP Camera => Hey Siri, Start Video Recording
Stars: ✭ 176 (+107.06%)
Mutual labels:  homebridge, homebridge-plugin, xiaomi
Homebridge Mi Acpartner
XiaoMi AC Partner plugins for HomeBridge(https://github.com/nfarina/homebridge).
Stars: ✭ 250 (+194.12%)
Mutual labels:  homebridge, homebridge-plugin, xiaomi
Homebridge Mi Airpurifier
XiaoMi air purifier plugins for HomeBridge.
Stars: ✭ 100 (+17.65%)
Mutual labels:  homebridge, homebridge-plugin, xiaomi
homebridge-mijia-camera
Homebridge plugin for the Xiaomi Mijia 1080P Smart IP Camera, also known as Mi Home Security Camera.
Stars: ✭ 35 (-58.82%)
Mutual labels:  homebridge, homebridge-plugin, xiaomi
homebridge-mi-pm2 5
XiaoMi PM2.5 sensor plugin for HomeBridge.
Stars: ✭ 15 (-82.35%)
Mutual labels:  homebridge, homebridge-plugin, xiaomi
homebridge-mi-robot vacuum
XiaoMi robot vacuum plugins for HomeBridge.
Stars: ✭ 53 (-37.65%)
Mutual labels:  homebridge, homebridge-plugin, xiaomi
Homebridge Mi Hygrothermograph
Homebridge plugin for the Xiaomi Mi Bluetooth Temperature and Humidity Sensor
Stars: ✭ 179 (+110.59%)
Mutual labels:  homebridge, homebridge-plugin, xiaomi
homebridge-mi-fan
XiaoMi fan plugins for HomeBridge.
Stars: ✭ 59 (-30.59%)
Mutual labels:  homebridge, homebridge-plugin, xiaomi
Homebridge Mi Aqara
a homebridge plugin for XiaoMi Aqara plugin.
Stars: ✭ 990 (+1064.71%)
Mutual labels:  homebridge, homebridge-plugin, xiaomi
homebridge-yeelight-platform
Homebridge plugin for Yeelight Lights supporting Scenes/Moods/Color Flow/Custom Presets/Music Flow/Night Mode
Stars: ✭ 53 (-37.65%)
Mutual labels:  homebridge, homebridge-plugin, xiaomi
Homebridge Mi Gateway Fm
XiaoMi Gateway FM plugin for HomeBridge.
Stars: ✭ 43 (-49.41%)
Mutual labels:  homebridge, homebridge-plugin, xiaomi
homebridge-konnected
A Homebridge plugin for Konnected Alarm Panel devices
Stars: ✭ 25 (-70.59%)
Mutual labels:  homebridge, homebridge-plugin
homebridge-lg-thinq-ac
Homebridge plugin for LG ThinQ-enabled portable air conditioner
Stars: ✭ 44 (-48.24%)
Mutual labels:  homebridge, homebridge-plugin
Homebridge Weather
OpenWeatherMap Plugin for Homebridge
Stars: ✭ 78 (-8.24%)
Mutual labels:  homebridge, homebridge-plugin
Homeassistantconfiguration
Home Assistant Config. For more info see link:
Stars: ✭ 260 (+205.88%)
Mutual labels:  homebridge, xiaomi
homebridge-vorwerk
A Vorwerk Kobold VR200 and VR300 vacuum robot plugin for homebridge.
Stars: ✭ 14 (-83.53%)
Mutual labels:  homebridge, homebridge-plugin
homebridge-automation-switches
A flexible automation switch for Homebridge: https://github.com/nfarina/homebridge
Stars: ✭ 96 (+12.94%)
Mutual labels:  homebridge, homebridge-plugin
Homebridge Tplink Smarthome
TP-Link Smarthome Plugin for Homebridge
Stars: ✭ 277 (+225.88%)
Mutual labels:  homebridge, homebridge-plugin
Homebridge Samsung Tizen
Homebridge plugin for Samsung TV's with Tizen OS
Stars: ✭ 364 (+328.24%)
Mutual labels:  homebridge, homebridge-plugin
Ring
Unofficial API for Ring Doorbells, Cameras, Alarm System, and Smart Lighting
Stars: ✭ 437 (+414.12%)
Mutual labels:  homebridge, homebridge-plugin

homebridge-mi-philips-light

npm version

XiaoMi Philips light plugins for HomeBridge.

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

Note: I have only a part of these devices, so some devices don't have tested. If you find bugs, please submit them to issues or QQ Group: 107927710.

Supported Devices

1.MiPhilipsSmartBulb(米家飞利浦智睿球泡灯)
2.MiPhilipsTableLamp2(米家飞利浦智睿台灯二代)
3.MiPhilipsCeilingLamp(米家飞利浦智睿吸顶灯)

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. Install packages.
npm install -g homebridge-mi-philips-light

Configuration

"platforms": [{
    "platform": "MiPhilipsLightPlatform",
    "deviceCfgs": [{
        "type": "MiPhilipsSmartBulb",
        "ip": "192.168.88.xx",
        "token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "lightName": "living room bulb",
        "lightDisable": false
    }, {
        "type": "MiPhilipsTableLamp2",
        "ip": "192.168.88.xx",
        "token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "mainLightName": "living room table lamp",
        "secondLightName": "living room table lamp amb",
        "secondLightDisable": false,
        "eyecareSwitchName": "living room table lamp eyecare model",
        "eyecareSwitchDisable": false
    }, {
        "type": "MiPhilipsCeilingLamp",
        "ip": "192.168.88.xx",
        "token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "lightName": "living room ceiling lamp",
        "lightDisable": false,
        "updatetimer": false,
        "interval": 3
    }]
}]

Get token

Get token by miio2.db

setup MiJia(MiHome) app in your android device or android virtual machine.
open MiJia(MiHome) app and login your account.
refresh device list and make sure device display in the device list.
get miio2.db(path: /data/data/com.xiaomi.smarthome/databases/miio2.db) file from your android device or android virtual machine.
open website [Get MiIo Tokens By DataBase File], upload miio2.db file and submit.

Get token by network

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.2.3 (2018-02-10)

1.update 'package.json'.

0.2.2 (2017-11-18)

1.modify class name, reduce the probability of conflicts due to the same class name and other plugins.

0.2.1 (2017-10-23)

1.fix the bug of SmartBulb ColorTemperature.
2.fix the bug of CeilingLamp ColorTemperature.

0.2.0 (2017-10-14)

1.add support for Philips Ceiling Lamp.

0.1.1 (2017-10-14)

1.add Philips Table Lamp 2 eyecare mode switch accessory.

0.1.0 (2017-10-12)

1.add support for Philips Table Lamp 2.

0.0.6 (2017-09-11)

1.optimized code.

0.0.5 (2017-09-05)

1.optimized code.

0.0.4 (2017-08-30)

1.fixed bug that 'log of undefined' error.
2.config item 'accessories' renamed 'deviceCfgs'.

0.0.3 (2017-08-29)

1.fixed bug that many of the same type of device conflict with each other.

0.0.2 (2017-08-27)

1.optimized code.

0.0.1 (2017-08-27)

1.support for Philips Smart Bulb.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].