YinHangCode / homebridge-mi-philips-light

XiaoMi Philips light plugins for HomeBridge.
99 stars 18 forks source link

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

Open qstyler opened 5 years ago

qstyler commented 5 years ago

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
rbbahia commented 4 years ago

Hi, you found a solution? I have the same problem.