Token extraction
In order to extract tokens from the Yeelight Android app,
you need to create a backup like shown below.
adb backup -noapk com.yeelight.cherry -f backup.ab
If everything went fine and you got a backup.ab file,
from which you can extract the tokens with miio-extract-tokens as described in Extracting tokens.
miio-extract-tokens /tmp/yeelight.ab --password a
Unable to find miio database file apps/com.xiaomi.smarthome/db/miio2.db: "filename 'apps/com.xiaomi.smarthome/db/miio2.db' not found"
INFO:miio.extract_tokens:Trying to read apps/com.yeelight.cherry/sp/miot.xml
INFO:miio.extract_tokens:Reading tokens from Yeelight Android DB
Yeelight Color Bulb
Model: yeelink.light.color1
IP address: 192.168.xx.xx
Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
MAC: F0:B4:29:xx:xx:xx
Mi Bedside Lamp
Model: yeelink.light.bslamp1
IP address: 192.168.xx.xx
Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
MAC: 7C:49:EB:xx:xx:xx
|