小米智能家居第三方控制之一:抓包提取米家API并控制
https://www.xiaoweigod.com/network/2235.html
Step 1:login
https://account.xiaomi.com
Step 2:获取到控制鉴权需要的service token和数据加密用的security token
step 3:
https://api.io.mi.com/app
code
https://www.xiaoweigod.com/network/2235.html
Step 1:login
https://account.xiaomi.com
Step 2:获取到控制鉴权需要的service token和数据加密用的security token
step 3:
https://api.io.mi.com/app
code
xiaomi_miot:
username: xiaomi_username
password: xiaomi_password
# server_country: cn # 小米云服务器位置: cn(默认), de, i2, ru, sg, tw, us
SUPPORTED_DOMAINS = [
'sensor',
'binary_sensor',
'switch',
'light',
'fan',
'climate',
'cover',
'humidifier',
'media_player',
'camera',
'vacuum',
'water_heater',
'device_tracker',
'remote',
'alarm_control_panel',
]
CLOUD_SERVERS = {
'cn': '中国大陆',
'tw': '中國台灣',
'de': 'Europe',
'i2': 'India',
'ru': 'Russia',
'sg': 'Singapore',
'us': 'United States',
}
0