aholstenson / miio

Control Mi Home devices, such as Mi Robot Vacuums, Mi Air Purifiers, Mi Smart Home Gateway (Aqara) and more
MIT License
1.86k stars 354 forks source link

Install, Getting started, noob example #173

Open akuljana opened 6 years ago

akuljana commented 6 years ago

Hi,

trying to find how to get this thing working with some Hello World example, some intro,...

What I did:

Node installed
npm install -g miio
npm install miio in project/folder

I tried miio discover and this is what I get:

Device ID: 56593364
Model info: Unknown
Address: 192.168.8.100
Token: ???
Support: Unknown

I tried DEBUG=thing* miio discover and this is what I get:

thing:miio:56593364 <- Handshake reply: <Buffer 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00> +0ms
thing:miio:56593364 Loading token from storage, device hides token and no token set via options +5ms
thing:miio:56593364 <- Handshake reply: <Buffer 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00> +89ms
thing:miio:56593364 Loading token from storage, device hides token and no token set via options +2ms
Device ID: 56593364
Model info: Unknown
Address: 192.168.8.100
Token: ???
Support: Unknown

thing:miio:56593364 <- Handshake reply: <Buffer 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00> +415ms

This gateway with ringing and radio is connected to same network as computer with switch, sensors etc.

What am I doing wrong? Thank you!

KondukterCRO commented 6 years ago

First you must disconnect device from every app is's connected. Than when you run miio discover you'll get another wifi network on your pc's list of wifi networks. Connect to it and run miio discover again and you'll see token.

Roen00 commented 5 years ago

Hey @akuljana did u manage to resolve the issue?