GithubHelp home page GithubHelp logo

yinhangcode / homebridge-mi-philips-light Goto Github PK

View Code? Open in Web Editor NEW
99.0 10.0 18.0 37 KB

XiaoMi Philips light plugins for HomeBridge.

JavaScript 100.00%
homebridge homebridge-plugin xiaomi mi philips light

homebridge-mi-philips-light's Introduction

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.4 (2021-11-10)

1.bug fix on color temperature

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.

homebridge-mi-philips-light's People

Contributors

corsaircat avatar yinhangcode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebridge-mi-philips-light's Issues

Also works with Mi Smart LED Bulb Essential - Only Brightness

I used the plugin to include a couple of Mi Smart LED Bulb Essential.

I selected MiLight Living room from the plugin options.
Enter the correct IP.
Spend half a day to get the lamp Token.

It correctly integrates the lamps but onl;y with brightness control.

Resetting a Xiaomi Philips LED Ceiling Lamp

This isn't a homebridge related question but I am hoping someone here might know how to reset the Xiaomi Philips LED Ceiling Lamp?

I wired up the lamp and turned it on, found it's wifi network and went to pair it in Mii Home iOS app (after reading on a forum I had to set location to China to see the device.

The app said something about bluetooth but then it cycled through some colours and gave me a loading screen but after getting to 100% it said could not find device and now the lamp's SSID doesn't appear on my list of wifi networks and I am stuck!

I am using homebridge with a range of sonoff, wemo and tp-link products and have never had any hassles like this! I purchased the lamp from Gearbest but their support is non-existant.

token on iOS or MacOS

Hi.
How can I find the token on iOS device (without jailbreak) or MacOS ?
Thanks.

3 Philips bulbs,only 1 working

Hi there, as the title says : 1 bulb working just fine in homekit, 2 others dont.
Here is my config :

{
"bridge": {
"name": "My bridge to RPI",
"username": "CC:22:3D:E3:CE:32",
"port": 51827,
"pin": "031-45-155"
},
"accessories": [
{
"accessory": "MiAirPurifier",
"name": "Air Purifier",
"showTemperature": true,
"showHumidity": true,
"showAirQuality": true
}
],
"platforms": [
{
"platform": "MiPhilipsLightPlatform",
"deviceCfgs": [
{
"type": "MiPhilipsSmartBulb",
"ip": "192.168.31.12",
"token": "87e42ae72bd9b2aa646de01c9ecd35f6",
"lightName": "living room bulb 1",
"lightDisable": false
}
]
},
{
"platform": "MiPhilipsLightPlatform",
"deviceCfgs": [
{
"type": "MiPhilipsSmartBulb",
"ip": "192.168.31.163",
"token": "0a24545965c0edaa2d5723389ae8cf11",
"lightName": "living room bulb 2",
"lightDisable": false
}
]
},
{
"platform": "MiPhilipsLightPlatform",
"deviceCfgs": [
{
"type": "MiPhilipsSmartBulb",
"ip": "192.168.31.46",
"token": "d3131ec9b910bc6a6d0295ed30a4ca93",
"lightName": "living room bulb 3",
"lightDisable": false
}
]
}
]
}

TableLamp2

Thanks for your time doing the plugin. Waiting for the next update to make TableLamp2 working as well.

How to skip offline devices?

I have 4 Philips bulbs in my house and one of them almost always has no power. In this case I have 2 issues:

  • Long wait (like 10 seconds) when opening Home App until all Homebridge devices initialize. Seems like this is a time when this.device.call trying to complete.
  • Scenes that include this bulb don't work properly and fail.

I'm a newbie in homebridge and not sure how to change the code to stop this plugin from freezing the system when it asks for device statuses (getBrightness, getPower and getColorTemperature). And how to disable No response? Any suggestions, please?

No token

I've tried to extract the token trought different methods.

1- From iOS backup..... NOT WORKING
2- From miio --discover --sync ...... NOT WORKING
3- From rooted android and the file ...... APPEARS VOID..

Can someone help me?

Philips Smart LED Bulb not possible to control

I have problem with the Bulb and can not control it.

[2017-11-26 03:45:13] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - getPower Error: Error: Call to device timed out
[2017-11-26 03:45:13] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - getBrightness Error: Error: Call to device timed out
[2017-11-26 03:45:13] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - getColorTemperature Error: Error: Call to device timed out

I read my token from my iPhone and it is 96byte long. Set all of it but got still the error. Shorted down to 32byte and still the same Error.

ZEXTFWVERSION: 1.3.0_0033
ZMODEL: philips.light.bulb
ZTOKENENCRYPT: 1
ZPERMITLEVEL: 16

{
	"platform": "MiPhilipsLightPlatform",
	"deviceCfgs": [
		{
		    "type": "MiPhilipsSmartBulb",
		    "ip": "192.168.0.31",
		    "token": "96 byte token",
		    "lightName": "living room bulb",
		    "lightDisable": false
		}
	]
}

I resetted the Bulb and connected again and read out the Token and it was the same.

This plugin slows down Homebridge

[homebridge-mi-philips-light] This plugin slows down Homebridge. The read handler for the characteristic 'On' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info.

via:homebridge 13.4 Node.js v14.17.1 Npm v7.17.0

Homebridge doesn't see Xiaomi Philips

Hello
I installed homebridge-mi-philips-light. My Xiaomi Philips is in list, but it is inactive. I have yeelight bulbs, and they work normally, so homebridge seems configured right...
Below is my config file. Can you please suggest?

{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},
"description": "This is an example configuration file. You can use this as a template for creating your own configuration file containing devices you actually own.",
"accessories": [],
"platforms": [
{
"platform": "MiPhilipsLightPlatform",
"deviceCfgs": [
{
"type": "MiPhilipsCeilingLamp",
"ip": "192.168.0.51",
"token": "5dfd25dd511bf30d4af4782bd04cf809",
"lightName": "living room ceiling lamp",
"lightDisable": false,
"updatetimer": false,
"interval": 3
}
]
},
{
"platform": "Yeelight-Platform",
"addResetSwitch": true,
"shouldTurnOff": true,
"scenes": [
{
"name": "Dark Cave",
"scene": "custom",
"params": "2000,1,255,70,2000,1,255,100,5000,1,255,70,3000,1,13369548,100,3000,1,13369548,10"
},
{
"name": "Break in",
"scene": "custom",
"params": "500,1,255,100,500,1,255,10"
},
{
"name": "Disco",
"scene": "disco"
},
{
"name": "Party",
"scene": "birthday_party"
},
{
"name": "Flash",
"scene": "flash_notify"
},
{
"name": "Candle Light",
"scene": "candle_flicker"
},
{
"name": "Police_1",
"scene": "police_1"
},
{
"name": "Police_2",
"scene": "police_2"
},
{
"name": "Alarm",
"scene": "alarm"
},
{
"name": "Gaming",
"scene": "gaming"
},
{
"name": "Night Mode",
"scene": "night_mode",
"lights": [
"0x000000000543dd83"
]
}
]
}
]
}

Errors when turn on or turn off light bulb

When turn on:

[MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - setBrightness Error: Error: Resp invalid json.

When turn off:

[2018-1-7 20:29:34] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - setPower Error: Error: Resp invalid json.

Mi Philips Zhirui e14 candle lamp "Error: Call to device timed out"

Hi there!
I'm trying to make my Mi Philips e14 candle bulb to work with the HomeKit.
I was able to get toke from the iPhone backup and the device pops up in my Home app on the iPhone.
But it always stays as “not available”.

Looks like it's getting a timeout while trying to connect to the device, but getting request timeout.

The bulb is controllable from mi home app though. I'm also able to ping the address of the device.

Here's how it's configured:

{
            "platform": "MiPhilipsLightPlatform",
            "deviceCfgs": [
                {
                    "type": "MiPhilipsSmartBulb",
                    "ip": "192.168.1.27",
                    "token": "60bc18d755201732553d391fb3a20b7fabe757a91de75a59842f64bb0df75c070143db63ee66b0cdff9f69917680151e",
                    "lightName": "living room bulb",
                    "lightDisable": false
                }
            ]
        }

and here's the /var/log/homebridge.err:

Wed, 16 Oct 2019 18:41:13 GMT EventedHTTPServer [::ffff:192.168.1.20] New connection from client
Wed, 16 Oct 2019 18:41:13 GMT EventedHTTPServer [::ffff:192.168.1.20] HTTP server listening on port 34514
Wed, 16 Oct 2019 18:41:13 GMT EventedHTTPServer [::ffff:192.168.1.20] HTTP request: /pair-verify
Wed, 16 Oct 2019 18:41:13 GMT HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-verify
Wed, 16 Oct 2019 18:41:13 GMT HAPServer [CC:22:3D:E3:CE:30] Pair verify step 1/2
Wed, 16 Oct 2019 18:41:14 GMT EventedHTTPServer [::ffff:192.168.1.20] HTTP Response is finished
Wed, 16 Oct 2019 18:41:14 GMT EventedHTTPServer [::ffff:192.168.1.20] HTTP request: /pair-verify
Wed, 16 Oct 2019 18:41:14 GMT HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-verify
Wed, 16 Oct 2019 18:41:14 GMT HAPServer [CC:22:3D:E3:CE:30] Pair verify step 2/2
Wed, 16 Oct 2019 18:41:14 GMT HAPServer [CC:22:3D:E3:CE:30] Client 0D1ADE17-9BB8-48FF-9F7E-60045ED92453 verification complete
Wed, 16 Oct 2019 18:41:14 GMT EventedHTTPServer [::ffff:192.168.1.20] HTTP Response is finished
Wed, 16 Oct 2019 18:41:14 GMT EventedHTTPServer [::ffff:192.168.1.20] HTTP request: /accessories
Wed, 16 Oct 2019 18:41:14 GMT HAPServer [CC:22:3D:E3:CE:30] HAP Request: GET /accessories
Wed, 16 Oct 2019 18:41:14 GMT EventedHTTPServer [::ffff:192.168.1.20] HTTP Response is finished
Wed, 16 Oct 2019 18:41:14 GMT EventedHTTPServer [::ffff:192.168.1.20] HTTP request: /characteristics?id=2.10,2.11,2.12
Wed, 16 Oct 2019 18:41:14 GMT HAPServer [CC:22:3D:E3:CE:30] HAP Request: GET /characteristics?id=2.10,2.11,2.12
Wed, 16 Oct 2019 18:41:14 GMT Accessory [Homebridge] Getting value for Characteristic "On"
Wed, 16 Oct 2019 18:41:14 GMT Accessory [Homebridge] Getting value for Characteristic "Brightness"
Wed, 16 Oct 2019 18:41:14 GMT Accessory [Homebridge] Getting value for Characteristic "Color Temperature"
Wed, 16 Oct 2019 18:41:14 GMT miio.device.[192.168.1.27] -> (5) {"id":32,"method":"get_prop","params":["power"]}
Wed, 16 Oct 2019 18:41:14 GMT miio.packet -> <Buffer 21 31 00 60 00 00 00 00 04 4a 06 61 00 00 08 13 e2 dc 2f d4 a7 01 bf 29 8d 9e 32 9e c6 d9 d8 9e>
Wed, 16 Oct 2019 18:41:14 GMT miio.device.[192.168.1.27] -> (5) {"id":33,"method":"get_prop","params":["bright"]}
Wed, 16 Oct 2019 18:41:14 GMT miio.packet -> <Buffer 21 31 00 60 00 00 00 00 04 4a 06 61 00 00 08 13 01 f2 79 7c e9 40 f4 2b 88 83 f5 05 ff 16 db ad>
Wed, 16 Oct 2019 18:41:14 GMT miio.device.[192.168.1.27] -> (5) {"id":34,"method":"get_prop","params":["cct"]}
Wed, 16 Oct 2019 18:41:14 GMT miio.packet -> <Buffer 21 31 00 50 00 00 00 00 04 4a 06 61 00 00 08 13 24 c0 8b 30 bb 02 c8 bd 85 b2 64 71 09 be 48 6f>
Wed, 16 Oct 2019 18:41:14 GMT miio.packet <- <Buffer 21 31 00 60 00 00 00 00 04 4a 06 61 00 00 08 13 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff>
Wed, 16 Oct 2019 18:41:14 GMT miio.device.[192.168.1.27] <- null
Wed, 16 Oct 2019 18:41:14 GMT miio.packet <- <Buffer 21 31 00 60 00 00 00 00 04 4a 06 61 00 00 08 13 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff>
Wed, 16 Oct 2019 18:41:14 GMT miio.device.[192.168.1.27] <- null
Wed, 16 Oct 2019 18:41:14 GMT miio.packet <- <Buffer 21 31 00 50 00 00 00 00 04 4a 06 61 00 00 08 13 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff>
Wed, 16 Oct 2019 18:41:14 GMT miio.device.[192.168.1.27] <- null
Wed, 16 Oct 2019 18:41:16 GMT miio.device.[192.168.1.27] -> (4) {"id":32,"method":"get_prop","params":["power"]}
Wed, 16 Oct 2019 18:41:16 GMT miio.packet -> <Buffer 21 31 00 60 00 00 00 00 04 4a 06 61 00 00 08 14 3a ac 8f 6b 90 e7 26 c6 6d 18 c5 d5 33 88 75 4b>
Wed, 16 Oct 2019 18:41:16 GMT miio.device.[192.168.1.27] -> (4) {"id":33,"method":"get_prop","params":["bright"]}
Wed, 16 Oct 2019 18:41:16 GMT miio.packet -> <Buffer 21 31 00 60 00 00 00 00 04 4a 06 61 00 00 08 14 b8 76 2e 14 5e e7 d4 52 ff c7 47 9a 52 e6 97 3f>
Wed, 16 Oct 2019 18:41:16 GMT miio.device.[192.168.1.27] -> (4) {"id":34,"method":"get_prop","params":["cct"]}
Wed, 16 Oct 2019 18:41:16 GMT miio.packet -> <Buffer 21 31 00 50 00 00 00 00 04 4a 06 61 00 00 08 14 14 01 42 21 86 0d 09 7f 95 79 69 b7 91 f7 da 19>
Wed, 16 Oct 2019 18:41:16 GMT miio.packet <- <Buffer 21 31 00 60 00 00 00 00 04 4a 06 61 00 00 08 14 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff>
Wed, 16 Oct 2019 18:41:16 GMT miio.device.[192.168.1.27] <- null
Wed, 16 Oct 2019 18:41:16 GMT miio.packet <- <Buffer 21 31 00 60 00 00 00 00 04 4a 06 61 00 00 08 14 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff>
Wed, 16 Oct 2019 18:41:16 GMT miio.device.[192.168.1.27] <- null
Wed, 16 Oct 2019 18:41:16 GMT miio.packet <- <Buffer 21 31 00 50 00 00 00 00 04 4a 06 61 00 00 08 14 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff>
Wed, 16 Oct 2019 18:41:16 GMT miio.device.[192.168.1.27] <- null
Wed, 16 Oct 2019 18:41:18 GMT miio.device.[192.168.1.27] -> (3) {"id":32,"method":"get_prop","params":["power"]}
Wed, 16 Oct 2019 18:41:18 GMT miio.packet -> <Buffer 21 31 00 60 00 00 00 00 04 4a 06 61 00 00 08 15 48 0e f4 1f 77 2e f1 24 72 36 a1 86 b3 83 77 80>
Wed, 16 Oct 2019 18:41:18 GMT miio.device.[192.168.1.27] -> (3) {"id":33,"method":"get_prop","params":["bright"]}
Wed, 16 Oct 2019 18:41:18 GMT miio.packet -> <Buffer 21 31 00 60 00 00 00 00 04 4a 06 61 00 00 08 15 f3 2a ad b3 d3 c1 7b b8 12 98 0b fc 02 ee 3d 18>
Wed, 16 Oct 2019 18:41:18 GMT miio.device.[192.168.1.27] -> (3) {"id":34,"method":"get_prop","params":["cct"]}
Wed, 16 Oct 2019 18:41:18 GMT miio.packet -> <Buffer 21 31 00 50 00 00 00 00 04 4a 06 61 00 00 08 15 5d c7 e5 7c 8b 28 03 77 b9 52 e3 3b e6 f8 8c 51>
Wed, 16 Oct 2019 18:41:18 GMT miio.packet <- <Buffer 21 31 00 60 00 00 00 00 04 4a 06 61 00 00 08 15 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff>
Wed, 16 Oct 2019 18:41:18 GMT miio.device.[192.168.1.27] <- null
Wed, 16 Oct 2019 18:41:18 GMT miio.packet <- <Buffer 21 31 00 60 00 00 00 00 04 4a 06 61 00 00 08 15 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff>
Wed, 16 Oct 2019 18:41:18 GMT miio.device.[192.168.1.27] <- null
Wed, 16 Oct 2019 18:41:18 GMT miio.packet <- <Buffer 21 31 00 50 00 00 00 00 04 4a 06 61 00 00 08 15 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff>
Wed, 16 Oct 2019 18:41:18 GMT miio.device.[192.168.1.27] <- null
Wed, 16 Oct 2019 18:41:20 GMT miio.device.[192.168.1.27] -> (2) {"id":32,"method":"get_prop","params":["power"]}
Wed, 16 Oct 2019 18:41:20 GMT miio.packet -> <Buffer 21 31 00 60 00 00 00 00 04 4a 06 61 00 00 08 16 d9 13 9b 42 b5 42 15 97 ba 01 c0 bd 3c 82 85 6d>
Wed, 16 Oct 2019 18:41:20 GMT miio.device.[192.168.1.27] -> (2) {"id":33,"method":"get_prop","params":["bright"]}
Wed, 16 Oct 2019 18:41:20 GMT miio.packet -> <Buffer 21 31 00 60 00 00 00 00 04 4a 06 61 00 00 08 16 1c 87 f2 19 1e 54 5f c3 0c 4c 72 de f5 7c 13 cf>
Wed, 16 Oct 2019 18:41:20 GMT miio.device.[192.168.1.27] -> (2) {"id":34,"method":"get_prop","params":["cct"]}
Wed, 16 Oct 2019 18:41:20 GMT miio.packet -> <Buffer 21 31 00 50 00 00 00 00 04 4a 06 61 00 00 08 16 7c 47 08 51 4a 03 13 02 5a 0d df 84 f3 9b 44 d6>
Wed, 16 Oct 2019 18:41:20 GMT miio.packet <- <Buffer 21 31 00 60 00 00 00 00 04 4a 06 61 00 00 08 16 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff>
Wed, 16 Oct 2019 18:41:20 GMT miio.device.[192.168.1.27] <- null
Wed, 16 Oct 2019 18:41:20 GMT miio.packet <- <Buffer 21 31 00 60 00 00 00 00 04 4a 06 61 00 00 08 16 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff>
Wed, 16 Oct 2019 18:41:20 GMT miio.device.[192.168.1.27] <- null
Wed, 16 Oct 2019 18:41:20 GMT miio.packet <- <Buffer 21 31 00 50 00 00 00 00 04 4a 06 61 00 00 08 16 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff>
Wed, 16 Oct 2019 18:41:20 GMT miio.device.[192.168.1.27] <- null
[10/16/2019, 6:43:18 PM] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - getPower Error: Error: Call to device timed out
Wed, 16 Oct 2019 18:43:18 GMT Accessory [Homebridge] Got Characteristic "On" value: undefined
Wed, 16 Oct 2019 18:43:18 GMT Accessory [Homebridge] Error getting value for Characteristic "On": Call to device timed out
[10/16/2019, 6:43:18 PM] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - getColorTemperature Error: Error: Call to device timed out
Wed, 16 Oct 2019 18:43:18 GMT Accessory [Homebridge] Got Characteristic "Color Temperature" value: undefined
Wed, 16 Oct 2019 18:43:18 GMT Accessory [Homebridge] Error getting value for Characteristic "Color Temperature": Call to device timed out
[10/16/2019, 6:43:18 PM] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - getBrightness Error: Error: Call to device timed out
Wed, 16 Oct 2019 18:43:18 GMT Accessory [Homebridge] Got Characteristic "Brightness" value: undefined
Wed, 16 Oct 2019 18:43:18 GMT Accessory [Homebridge] Error getting value for Characteristic "Brightness": Call to device timed out
[10/16/2019, 6:43:20 PM] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - getPower Error: Error: Call to device timed out
Wed, 16 Oct 2019 18:43:20 GMT Accessory [Homebridge] Got Characteristic "On" value: undefined
Wed, 16 Oct 2019 18:43:20 GMT Accessory [Homebridge] Error getting value for Characteristic "On": Call to device timed out
[10/16/2019, 6:43:20 PM] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - getColorTemperature Error: Error: Call to device timed out
Wed, 16 Oct 2019 18:43:20 GMT Accessory [Homebridge] Got Characteristic "Color Temperature" value: undefined
Wed, 16 Oct 2019 18:43:20 GMT Accessory [Homebridge] Error getting value for Characteristic "Color Temperature": Call to device timed out
[10/16/2019, 6:43:20 PM] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - getBrightness Error: Error: Call to device timed out
Wed, 16 Oct 2019 18:43:20 GMT Accessory [Homebridge] Got Characteristic "Brightness" value: undefined
Wed, 16 Oct 2019 18:43:20 GMT Accessory [Homebridge] Error getting value for Characteristic "Brightness": Call to device timed out

Long status update in Home app if device is offline

When Philips ceiling is offline (for example - powered off with classic wall switch) - IOS Home App opens very slowly, waiting for device status update, and so all the homebridge lags for few seconds.
Other plugins in such case doesnt halt the homebridge and give status response instantly.
When all devices are online - all just ok and loads fast.
Can you fix this please?

Can't find your plugin?

I can't find your plugin "@YinHangCode/homebridge-mi-philips-light" in HomeBridge but others, do you know why? Thanks
2021-11-15_15-02-54

Color

Hi,
I have Xiaomi Philips Smart LED Ball Lamp. When I configure with my homebridge in home app I can click strong to move brightness or click "color" button. However when I just say "hey siri, set color of my lamp to..." I have response "Sorry, the lamp doesn't have color controls."
Can you please help me how to fix it?

Call to device timed out

This plugin fails to reach the bulbs.

All bulbs are online and reachable via the MiHome App on iOS

Logs in homebridge shoe

[2018-4-19 03:32:18] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - getColorTemperature Error: Error: Call to device timed out
[2018-4-19 03:32:18] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - getBrightness Error: Error: Call to device timed out
[2018-4-19 03:32:18] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - getPower Error: Error: Call to device timed out
[2018-4-19 03:32:18] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - getColorTemperature Error: Error: Call to device timed out
[2018-4-19 03:32:18] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - getBrightness Error: Error: Call to device timed out
[2018-4-19 03:34:49] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - getColorTemperature Error: Error: Call to device timed out
[2018-4-19 03:34:49] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - getBrightness Error: Error: Call to device timed out
[2018-4-19 03:34:49] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - getPower Error: Error: Call to device timed out
[2018-4-19 03:34:49] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - getColorTemperature Error: Error: Call to device timed out
[2018-4-19 03:34:49] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - getBrightness Error: Error: Call to device timed out

The plugin seems to bring significant delay to the home app being able to update all accessories.

My config is as follows;

  {
            "platform": "MiPhilipsLightPlatform",
            "deviceCfgs": [
                {
                    "type": "MiPhilipsSmartBulb",
                    "ip": "10.1.1.148",
                    "token": "4ad4e36a4b15e3f762b226ddf4dd7625",
                    "lightName": "Philips1",
                    "lightDisable": false
                },
                {
                    "type": "MiPhilipsSmartBulb",
                    "ip": "10.1.1.149",
                    "token": "4ad4e36a4b15e3f762b226ddf4dd7625",
                    "lightName": "Philips2",
                    "lightDisable": false
                },
                {
                    "type": "MiPhilipsSmartBulb",
                    "ip": "10.1.1.150",
                    "token": "253ae731bd3037d2ff0004c8b9210e42",
                    "lightName": "Philips3",
                    "lightDisable": false
                },
                {
                    "type": "MiPhilipsSmartBulb",
                    "ip": "10.1.1.151",
                    "token": "93780df0a153a46f34167efb195e595f",
                    "lightName": "Philips4",
                    "lightDisable": false
                },
                {
                    "type": "MiPhilipsSmartBulb",
                    "ip": "10.1.1.152",
                    "token": "77a9a52d4965920b490177648aafa83f",
                    "lightName": "Philips5",
                    "lightDisable": false
                }
            ]
        }

CeilingLamp

Great job, thanks for the plugin. Waiting for the next update to make Xiaomi Philips LED Ceiling Lamp also works.

Candle light

Does it work with the new philips xiaomi candle lights?
I configured everything but the lamp doesn't appear on ios

Will it work with the first Xiaomi Philips Wisdom lamp?

UUID Error

[2018-5-23 10:58:41] Loaded plugin: homebridge-mi-air-purifier
[2018-5-23 10:58:41] Registering accessory 'homebridge-mi-air-purifier.MiAirPurifier'
[2018-5-23 10:58:41] ---
[2018-5-23 10:58:41] Loaded plugin: homebridge-mi-philips-light
[2018-5-23 10:58:41] Registering platform 'homebridge-mi-philips-light.MiPhilipsLightPlatform'
[2018-5-23 10:58:41] ---
failed to load BLE module!
[2018-5-23 10:58:41] Loaded plugin: homebridge-yeelight
[2018-5-23 10:58:41] Registering platform 'homebridge-yeelight.yeelight'
[2018-5-23 10:58:41] ---
[2018-5-23 10:58:41] Loaded config.json with 1 accessories and 1 platforms.
[2018-5-23 10:58:41] ---
[2018-5-23 10:58:41] Loading 1 platforms...
[2018-5-23 10:58:41] Initializing MiPhilipsLightPlatform platform...
[2018-5-23 10:58:41] [MiPhilipsLightPlatform][INFO]********************************************************************
[2018-5-23 10:58:41] [MiPhilipsLightPlatform][INFO] MiPhilipsLightPlatform v0.2.3 By YinHang
[2018-5-23 10:58:41] [MiPhilipsLightPlatform][INFO] GitHub: https://github.com/YinHangCode/homebridge-mi-philips-light
[2018-5-23 10:58:41] [MiPhilipsLightPlatform][INFO] QQ Group: 107927710
[2018-5-23 10:58:41] [MiPhilipsLightPlatform][INFO]********************************************************************
[2018-5-23 10:58:41] [MiPhilipsLightPlatform][INFO]start success...
[2018-5-23 10:58:41] [MiPhilipsLightPlatform][INFO]device size: 3, accessories size: 3
[2018-5-23 10:58:41] Initializing platform accessory 'L1'...
/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Service.js:71
if (existing.UUID === characteristic.UUID)
^

TypeError: Cannot read property 'UUID' of undefined
at Service.Lightbulb.Service.addCharacteristic (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Service.js:71:41)
at MiPhilipsSmartBulbLight.getServices (/usr/lib/node_modules/homebridge-mi-philips-light/Devices/MiPhilipsSmartBulb.js:60:10)
at Server._createAccessory (/usr/lib/node_modules/homebridge/lib/server.js:378:36)
at Server. (/usr/lib/node_modules/homebridge/lib/server.js:364:32)
at /usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/once.js:16:19
at MiPhilipsLightPlatform.accessories (/usr/lib/node_modules/homebridge-mi-philips-light/index.js:104:9)
at Server._loadPlatformAccessories (/usr/lib/node_modules/homebridge/lib/server.js:354:20)
at Server._loadPlatforms (/usr/lib/node_modules/homebridge/lib/server.js:298:16)
at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:80:36)
at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:40:10)

Someone helps me understand this

I have a problem, I had homebridge in rbp3, everything configured perfect and running, I have made homebridge in Mac OsX and the same config.json copied in mac osX and problems with philips xiaomi bulbs, because the same file gives problems in different platforms? only problems with xiaomi philips bulbs, this is my error when running homebridge.

JbNoXss-Mac-mini:~ jbnoxs$ homebridge
[2018-1-29 12:45:34] Loaded plugin: homebridge-mi-aqara
[2018-1-29 12:45:34] Registering platform 'homebridge-mi-aqara.MiAqaraPlatform'
[2018-1-29 12:45:34] ---
[2018-1-29 12:45:35] Loaded plugin: homebridge-mi-philips-light
[2018-1-29 12:45:35] Registering platform 'homebridge-mi-philips-light.MiPhilipsLightPlatform'
[2018-1-29 12:45:35] ---
[2018-1-29 12:45:37] Loaded plugin: homebridge-nefit-easy
[2018-1-29 12:45:37] Registering accessory 'homebridge-nefit-easy.NefitEasy'
[2018-1-29 12:45:37] ---
[2018-1-29 12:45:37] Loaded config.json with 1 accessories and 2 platforms.
[2018-1-29 12:45:37] ---
[2018-1-29 12:45:37] Loading 2 platforms...
[2018-1-29 12:45:37] [MiAqaraPlatform] Initializing MiAqaraPlatform platform...
[2018-1-29 12:45:37] [MiAqaraPlatform] [INFO]**************************************************************
[2018-1-29 12:45:37] [MiAqaraPlatform] [INFO] MiAqaraPlatform v0.6.8 By YinHang
[2018-1-29 12:45:37] [MiAqaraPlatform] [INFO] GitHub: https://github.com/YinHangCode/homebridge-mi-aqara
[2018-1-29 12:45:37] [MiAqaraPlatform] [INFO] QQ Group: 107927710
[2018-1-29 12:45:37] [MiAqaraPlatform] [INFO]**************************************************************
[2018-1-29 12:45:37] [MiAqaraPlatform] [INFO]start success...
[2018-1-29 12:45:37] [MiAqaraPlatform] [INFO]config gateways: 34ce0092452f
[2018-1-29 12:45:37] [MiAqaraPlatform] [INFO]binding to the default interface
[2018-1-29 12:45:37] [MiPhilipsLightPlatform] Initializing MiPhilipsLightPlatform platform...
[2018-1-29 12:45:37] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][INFO]********************************************************************
[2018-1-29 12:45:37] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][INFO] MiPhilipsLightPlatform v0.2.2 By YinHang
[2018-1-29 12:45:37] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][INFO] GitHub: https://github.com/YinHangCode/homebridge-mi-philips-light
[2018-1-29 12:45:37] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][INFO] QQ Group: 107927710
[2018-1-29 12:45:37] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][INFO]********************************************************************
[2018-1-29 12:45:37] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][INFO]start success...
/usr/local/lib/node_modules/homebridge-mi-philips-light/Devices/MiPhilipsSmartBulb.js:17
this.device = new miio.Device({
^

TypeError: miio.Device is not a constructor
at new MiPhilipsSmartBulb (/usr/local/lib/node_modules/homebridge-mi-philips-light/Devices/MiPhilipsSmartBulb.js:17:19)
at MiPhilipsLightPlatform.accessories (/usr/local/lib/node_modules/homebridge-mi-philips-light/index.js:87:21)
at Server._loadPlatformAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:364:20)
at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:308:16)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:85:36)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Function.Module.runMain (module.js:684:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3

token ''???"

Hooked Phillips CeilingLamp and Phillips smartbulb. Can't get the token. Reset does not help, token all the time shows "???".

TypeError: miio.Device is not a constructor after milo update to 0.15.2

Hi,

after reinstalling the plugin i there comes a new version of miio 0.15.2 and after this could not start homebridge anymore.

Error
[2018-1-25 17:50:08] [Eyecare2] Initializing MiPhilipsLightPlatform platform...
[2018-1-25 17:50:08] [Eyecare2] [MiPhilipsLightPlatform][INFO]********************************************************************
[2018-1-25 17:50:08] [Eyecare2] [MiPhilipsLightPlatform][INFO] MiPhilipsLightPlatform v0.2.2 By YinHang
[2018-1-25 17:50:08] [Eyecare2] [MiPhilipsLightPlatform][INFO] GitHub: https://github.com/YinHangCode/homebridge-mi-philips-light
[2018-1-25 17:50:08] [Eyecare2] [MiPhilipsLightPlatform][INFO] QQ Group: 107927710
[2018-1-25 17:50:08] [Eyecare2] [MiPhilipsLightPlatform][INFO]********************************************************************
[2018-1-25 17:50:08] [Eyecare2] [MiPhilipsLightPlatform][INFO]start success...

/usr/local/lib/node_modules/homebridge-mi-philips-light/Devices/MiPhilipsTableLamp2.js:16
this.device = new miio.Device({
^
TypeError: miio.Device is not a constructor
at new MiPhilipsTableLamp2 (/usr/local/lib/node_modules/homebridge-mi-philips-light/Devices/MiPhilipsTableLamp2.js:16:19)
at MiPhilipsLightPlatform.accessories (/usr/local/lib/node_modules/homebridge-mi-philips-light/index.js:91:21)
at Server._loadPlatformAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:364:20)
at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:308:16)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:85:36)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Function.Module.runMain (module.js:701:10)
at startup (bootstrap_node.js:193:16)
at bootstrap_node.js:617:3

any idea to solve the problem?

I do not understand.

All the correct code and the homebridge runs without problems and I can not see any light bulb.

"platforms": [{
"platform": "MiPhilipsLightPlatform",
"deviceCfgs": [{
"type": "SmartBulb",
"ip": "192.168.0.162",
"token": "24960cb3fdccc30a56a617cb931c4b7a",
"lightName": "lampara tv 1",
"lightDisable": false
},
{
"type": "SmartBulb",
"ip": "192.168.0.161",
"token": "4ca64368d2b25193c3f3b42d5129e3c8",
"lightName": "lampara tv 2",
"lightDisable": false
}, {
"type": "SmartBulb",
"ip": "192.168.0.166",
"token":"f8e3a6e3dd0e09684a30528b8d4a685c",
"lightName": "Lamparilla",
"lightDisable": false
}]
}]
}
}
}
}]
}

Homebridge not working with Mi-Philips-Light

[2018-2-15 21:39:34] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - setBrightness Error: Error: Method not found.
[2018-2-15 21:39:34] [MiPhilipsLightPlatform] [MiPhilipsLightPlatform][ERROR]MiPhilipsSmartBulb - Light - setPower Error: Error: Method not found.

Hello!
Added a smartbulb to Homebridge. Apple Homekit sees the device but when trying to use no action is being taken; error messages shown above. Some help please :+1 :)

Mi Philips Light work but RGB not work

Hi there!

So, the problem is the lights are working perfectly, i see homekit etc. but only the light temperature can change for white colors. I'm not see the RGB setups. I Used for a Xiaomi Mi Bulb Essential RGB (EU) version.

Thank you for your answer

The requested platform ' ' was not registered by any plugin

Hello, I try for several days to configure my Philips lamps. however I do not know what is the name of the platform to put in "The requested platform" was not registered by any plugin ", even with MiPhilipsLightPlatform in the value it does not work.
Thank you for your help

I'm desperate

Hi, Someone could make me a hand, I currently have Homebridge running in MacOSX, but I want to do homebridge in raspberry, I'm using file for MacOSX Config. JSON and all right without problems, but when I try to raspberry gives me error in file, some Idea of what may happen to me,

74e12a76-f51b-4544-8162-8d6727684bf7

Philips Ceiling lamp - can’t choose lamp temperature

Hello. After update miio to 0.15.6 I can’t choose the lamp temperature. Only On/Off and brightness. I can’t use miio 0.14.1 because all of my devices work good only with this miio. Can you add support of miio0.15.6 to this plugin for Philips Ceiling lamp?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.