How to Get Mi Home Devices Token

If you using Mi Home App of Xiaomi, no matter what to discuss here.But if you want to control your Smart devices via Home Assistant and control all devices on local network (for avoid leaking information), you need to get password key hidden by provider.

 

How to send message via MIIO: you need device token. There are a lot of methods you can find on internet how to do this, I used this one: xiaomi gateway3

 

Retrieving the Access Token

way 1:Get Mi Home Devices Token App

https://github.com/Maxmudjon/Get_MiHome_devices_token  js

Get Mi Home devices token Windows/MacOS app

 

way 2:Get Mi Home Devices Token from

https://www.home-assistant.io/integrations/xiaomi_miio/#xiaomi-cloud-tokens-extractor]xiaomi-cloud-tokens-extractor App

 NAME:     网关
   ID:       463714703
   MAC:      54:EF:*:*:*:A6
   IP:       10.0.0.6
   TOKEN:    382552394159505360373944724e4276
   MODEL:    lumi.gateway.mgl03

https://www.home-assistant.io/integrations/xiaomi_miio/#xiaomi-cloud-tokens-extractor

 

 

Way 3:use Xiaomi Gateway3 integration for home assistant

https://github.com/AlexxIT/XiaomiGateway3

 

way 4:use xiaomi miot auto integration for home assistant

Call this service: xiaomi_miot.get_token in Developer Tools

Select xiaomi_miot.get_token, Enter the keyword of device name

service: xiaomi_miot.get_token
data:
  name: Light # Keyword of device name in Mihome / IP / Model.

https://github.com/al-one/hass-xiaomi-miot

 

Way 5:MiHome by Vevs app

python-miio-2.png

Comments


Comments are closed