I used homebridge-miio after running as follows, could not find a runable device. Also found a problem, my gateway device will disappear. Remove homebridge-miio later will not disappear.
[5/22/2017, 11:27:56 PM] Loaded plugin: homebridge-miio
[5/22/2017, 11:27:57 PM] Registering platform 'homebridge-miio.XiaomiMiio'
[5/22/2017, 11:27:57 PM] ---
[5/22/2017, 11:27:57 PM] Loaded config.json with 0 accessories and 1 platforms.
[5/22/2017, 11:27:57 PM] ---
[5/22/2017, 11:27:57 PM] Loading 1 platforms...
[5/22/2017, 11:27:57 PM] [XiaomiMiio] Initializing XiaomiMiio platform...
[5/22/2017, 11:27:57 PM] [XiaomiMiio] Setting up Miio platform
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
┌────────────┐
│ 000-00-002 │
└────────────┘
[5/22/2017, 11:27:57 PM] [XiaomiMiio] DidFinishLaunching
[5/22/2017, 11:27:57 PM] Homebridge is running on port 51826.
[5/22/2017, 11:27:57 PM] [XiaomiMiio] device discovered 48282918
[5/22/2017, 11:27:57 PM] [XiaomiMiio] Investigating Miio Device at udp://192.168.31.6:54321
[5/22/2017, 11:27:57 PM] [XiaomiMiio] device discovered 54965957
[5/22/2017, 11:27:57 PM] [XiaomiMiio] Investigating Miio Device at udp://192.168.31.171:54321
[5/22/2017, 11:27:57 PM] [XiaomiMiio] device discovered 1097069
[5/22/2017, 11:27:57 PM] [XiaomiMiio] Investigating Miio Device at udp://192.168.31.182:54321
[5/22/2017, 11:27:57 PM] [XiaomiMiio] device discovered 48562027
[5/22/2017, 11:27:57 PM] [XiaomiMiio] Investigating Miio Device at udp://192.168.31.161:54321
[5/22/2017, 11:27:57 PM] [XiaomiMiio] device discovered 49371632
[5/22/2017, 11:27:57 PM] [XiaomiMiio] Investigating Miio Device at udp://192.168.31.74:54321
[5/22/2017, 11:27:57 PM] [XiaomiMiio] Unsupported, ignoring
[5/22/2017, 11:27:59 PM] [XiaomiMiio] Unsupported, ignoring
[5/22/2017, 11:28:01 PM] [XiaomiMiio] Couldn't investigate device { id: 1097069,
address: '192.168.31.182',
port: 54321,
token: '00000000000000000000000000000000',
lastSeen: 1495466877459,
writeOnly: true } Error: Timeout
at _ensureToken.then (/usr/local/lib/node_modules/homebridge-miio/node_modules/miio/lib/device.js:223:23)
(node:2482) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'model' of undefined
(node:2482) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[5/22/2017, 11:28:01 PM] [XiaomiMiio] Couldn't investigate device { id: 48562027,
address: '192.168.31.161',
port: 54321,
token: '00000000000000000000000000000000',
lastSeen: 1495466877459,
writeOnly: true } Error: Timeout
at _ensureToken.then (/usr/local/lib/node_modules/homebridge-miio/node_modules/miio/lib/device.js:223:23)
[5/22/2017, 11:28:01 PM] [XiaomiMiio] Couldn't investigate device { id: 49371632,
address: '192.168.31.74',
port: 54321,
token: '00000000000000000000000000000000',
lastSeen: 1495466877460,
writeOnly: true } Error: Timeout
at _ensureToken.then (/usr/local/lib/node_modules/homebridge-miio/node_modules/miio/lib/device.js:223:23)
(node:2482) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'model' of undefined
I used homebridge-miio after running as follows, could not find a runable device. Also found a problem, my gateway device will disappear. Remove homebridge-miio later will not disappear. [5/22/2017, 11:27:56 PM] Loaded plugin: homebridge-miio [5/22/2017, 11:27:57 PM] Registering platform 'homebridge-miio.XiaomiMiio' [5/22/2017, 11:27:57 PM] --- [5/22/2017, 11:27:57 PM] Loaded config.json with 0 accessories and 1 platforms. [5/22/2017, 11:27:57 PM] --- [5/22/2017, 11:27:57 PM] Loading 1 platforms... [5/22/2017, 11:27:57 PM] [XiaomiMiio] Initializing XiaomiMiio platform... [5/22/2017, 11:27:57 PM] [XiaomiMiio] Setting up Miio platform Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
[5/22/2017, 11:27:57 PM] [XiaomiMiio] DidFinishLaunching [5/22/2017, 11:27:57 PM] Homebridge is running on port 51826. [5/22/2017, 11:27:57 PM] [XiaomiMiio] device discovered 48282918 [5/22/2017, 11:27:57 PM] [XiaomiMiio] Investigating Miio Device at udp://192.168.31.6:54321 [5/22/2017, 11:27:57 PM] [XiaomiMiio] device discovered 54965957 [5/22/2017, 11:27:57 PM] [XiaomiMiio] Investigating Miio Device at udp://192.168.31.171:54321 [5/22/2017, 11:27:57 PM] [XiaomiMiio] device discovered 1097069 [5/22/2017, 11:27:57 PM] [XiaomiMiio] Investigating Miio Device at udp://192.168.31.182:54321 [5/22/2017, 11:27:57 PM] [XiaomiMiio] device discovered 48562027 [5/22/2017, 11:27:57 PM] [XiaomiMiio] Investigating Miio Device at udp://192.168.31.161:54321 [5/22/2017, 11:27:57 PM] [XiaomiMiio] device discovered 49371632 [5/22/2017, 11:27:57 PM] [XiaomiMiio] Investigating Miio Device at udp://192.168.31.74:54321 [5/22/2017, 11:27:57 PM] [XiaomiMiio] Unsupported, ignoring [5/22/2017, 11:27:59 PM] [XiaomiMiio] Unsupported, ignoring [5/22/2017, 11:28:01 PM] [XiaomiMiio] Couldn't investigate device { id: 1097069, address: '192.168.31.182', port: 54321, token: '00000000000000000000000000000000', lastSeen: 1495466877459, writeOnly: true } Error: Timeout at _ensureToken.then (/usr/local/lib/node_modules/homebridge-miio/node_modules/miio/lib/device.js:223:23) (node:2482) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'model' of undefined (node:2482) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. [5/22/2017, 11:28:01 PM] [XiaomiMiio] Couldn't investigate device { id: 48562027, address: '192.168.31.161', port: 54321, token: '00000000000000000000000000000000', lastSeen: 1495466877459, writeOnly: true } Error: Timeout at _ensureToken.then (/usr/local/lib/node_modules/homebridge-miio/node_modules/miio/lib/device.js:223:23) [5/22/2017, 11:28:01 PM] [XiaomiMiio] Couldn't investigate device { id: 49371632, address: '192.168.31.74', port: 54321, token: '00000000000000000000000000000000', lastSeen: 1495466877460, writeOnly: true } Error: Timeout at _ensureToken.then (/usr/local/lib/node_modules/homebridge-miio/node_modules/miio/lib/device.js:223:23) (node:2482) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'model' of undefined