# hass-xiaomi-miot **Repository Path**: bugwfq/hass-xiaomi-miot ## Basic Information - **Project Name**: hass-xiaomi-miot - **Description**: 自动集成小米/米家设备到HomeAssistant开源智能家居系统,支持WiFi、蓝牙、ZIgBee等设备 - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://miot-spec.com - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 85 - **Created**: 2025-06-09 - **Last Updated**: 2025-06-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![version](https://img.shields.io/github/manifest-json/v/al-one/hass-xiaomi-miot?filename=custom_components%2Fxiaomi_miot%2Fmanifest.json)](https://github.com/al-one/hass-xiaomi-miot/releases/latest) [![releases](https://img.shields.io/github/downloads/al-one/hass-xiaomi-miot/total)](https://github.com/al-one/hass-xiaomi-miot/releases) [![stars](https://img.shields.io/github/stars/al-one/hass-xiaomi-miot)](https://github.com/al-one/hass-xiaomi-miot/stargazers) [![issues](https://img.shields.io/github/issues/al-one/hass-xiaomi-miot)](https://github.com/al-one/hass-xiaomi-miot/issues) [![HACS](https://img.shields.io/badge/HACS-Default-orange.svg)](https://hacs.xyz) # Xiaomi Miot For HomeAssistant [English](https://github.com/al-one/hass-xiaomi-miot/blob/master/README.md) | 简体中文 [MIoT-Spec](https://iot.mi.com/new/doc/design/spec/overall) 是小米IoT平台根据硬件产品的联网方式、产品功能的特点、用户使用场景的特征和用户对硬件产品使用体验的要求,设计的描述硬件产品功能定义的标准规范。 本插件利用了**miot**协议的规范,可将小米设备自动接入[HomeAssistant](https://www.home-assistant.io),目前已支持大部分小米米家智能设备。且该插件支持HA后台界面集成,无需配置yaml即可轻松将小米设备接入HA。 ![hass-xiaomi-miot-configs](https://user-images.githubusercontent.com/4549099/142151697-5188ea2d-0aad-4778-8b60-b949bcc410bb.png) ## 常见问题 - 👍 **[新手入门手把手教程1](https://mp.weixin.qq.com/s/1y_EV6xcg17r743aV-2eRw)** (感谢@来鸭大佬) - 👍 **[新手入门手把手教程2](https://bbs.iobroker.cn/t/topic/10831)** (感谢@萝卜大佬) - [登录失败/没有实体等常见问题解决办法](https://github.com/al-one/hass-xiaomi-miot/issues/500) - [支持哪些设备?是否支持XX型号?](https://github.com/al-one/hass-xiaomi-miot/issues/100#issuecomment-855183145) - [账号集成还是token集成?](https://github.com/al-one/hass-xiaomi-miot/issues/100#issuecomment-855183156) - [为什么XX型号的设备需要开启云端模式?如何开启?](https://github.com/al-one/hass-xiaomi-miot/issues/100#issuecomment-855185251) - [怎样为一个实体添加自定义属性?](https://github.com/al-one/hass-xiaomi-miot/issues/100#issuecomment-864678774) - [为什么设备状态会有延迟?如何减小延迟?](https://github.com/al-one/hass-xiaomi-miot/issues/100#issuecomment-909031222) - [如何翻译实体的选项文本?](https://github.com/al-one/hass-xiaomi-miot/issues/100#issuecomment-874613054) - [如何让小爱同学播放文本(TTS)和执行语音命令?](https://github.com/al-one/hass-xiaomi-miot/issues/100#issuecomment-885989099) - [如何在HA查看摄像头实体回放(看家助手)视频?](https://github.com/al-one/hass-xiaomi-miot/issues/100#issuecomment-903078604) - [为什么设备状态会有延迟?如何减小延迟?](https://github.com/al-one/hass-xiaomi-miot/issues/100#issuecomment-909031222) - [如何删除本插件生成的HA设备?](https://github.com/al-one/hass-xiaomi-miot/issues/165#issuecomment-899988208) - [[**新手必读**]更多其他常见问题...](https://github.com/al-one/hass-xiaomi-miot/issues/100) ## 安装/更新 #### 方法1: [HACS](https://github.com/hacs-china/integration) - 首次安装 > HACS > 集成 > ➕ 浏览并下载存储库 > [`Xiaomi Miot Auto`](https://my.home-assistant.io/redirect/hacs_repository/?owner=al-one&repository=hass-xiaomi-miot) > 下载此存储库 - 升级插件 > HACS > 集成 > [`Xiaomi Miot Auto`](https://my.home-assistant.io/redirect/hacs_repository/?owner=al-one&repository=hass-xiaomi-miot) > 更新 / 重新下载 #### 方法2: 通过`Samba`或`SFTP`手动安装 > 下载并复制`custom_components/xiaomi_miot`文件夹到HA根目录下的`custom_components`文件夹 #### 方法3: 通过`SSH`或`Terminal & SSH`加载项执行一键安装命令 ```shell wget -O - https://get.hacs.vip | DOMAIN=xiaomi_miot bash - ``` #### 方法4: `shell_command`服务 1. 复制下面的代码到HA配置文件`configuration.yaml` ```yaml shell_command: update_xiaomi_miot: |- wget -O - https://get.hacs.vip | DOMAIN=xiaomi_miot bash - ``` 2. 重启HA使配置生效 3. 在HA开发者工具中调用此服务[`service: shell_command.update_xiaomi_miot`](https://my.home-assistant.io/redirect/developer_call_service/?service=shell_command.update_xiaomi_miot) 4. 再次重启HA使新版插件生效 #### 视频教程 - 📺 **[HACS安装插件及使用视频教程](https://www.bilibili.com/video/BV1hY4y1a7Gh?t=48)** (感谢[小帅同学Js](https://space.bilibili.com/230242045)) - 📺 **[HACS安装插件视频教程](https://www.bilibili.com/video/BV17L411j73Y?t=62)** (感谢[@老明](https://space.bilibili.com/583175067)) - 📺 **[手动安装插件视频教程](https://www.bilibili.com/video/BV1EU4y1n7VR)** (感谢[@爱运动的数码君](https://space.bilibili.com/39480347)) ## 配置 > [⚙️ 配置](https://my.home-assistant.io/redirect/config) > 设备与服务 > [🧩 集成](https://my.home-assistant.io/redirect/integrations) > [➕ 添加集成](https://my.home-assistant.io/redirect/config_flow_start?domain=xiaomi_miot) > 🔍 搜索 `Xiaomi Miot Auto` 或者点击: [![添加集成](https://my.home-assistant.io/badges/config_flow_start.svg)](https://my.home-assistant.io/redirect/config_flow_start?domain=xiaomi_miot) ### 账号集成 (Add devices using Mi Account): 自v0.4.4版本开始,插件新增支持账号集成时选择连接设备的模式: - **自动模式**:插件定期更新[支持本地miot协议的设备](https://github.com/al-one/hass-xiaomi-miot/blob/master/custom_components/xiaomi_miot/core/miot_local_devices.py),并自动将用户筛选的设备中符合条件的型号使用本地连接(推荐) - **本地模式**:集成配置所筛选的设备都将使用本地连接,如勾选了不支持本地miot协议的设备将不可用 - **云端模式**:集成配置所筛选的设备都将使用云端连接,建议旧版miio、蓝牙、ZigBee设备使用 ### 本地集成 (Add device using host/token): 通过host/token接入设备,适用于在局域网环境下支持miot协议的设备 ### 配置云端模式: > 为**通过token集成的设备**开启云端模式 ```yaml # configuration.yaml xiaomi_miot: username: xiaomi_username password: xiaomi_password # server_country: cn # 小米云服务器位置: cn(默认), de, i2, ru, sg, tw, us # http_timeout: 15 # 请求小米接口的超时时间(秒) ``` > [⚙️ 配置](https://my.home-assistant.io/redirect/config) > 设备与服务 > [🧩 集成](https://my.home-assistant.io/redirect/integrations) > Xiaomi Miot Auto > 选项 > ☑️ 开启云端模式 ### 配置翻译词典: > 可以通过配置文件将大部分miot属性的选项描述(如:模式、风速等)翻译成你想要的语言,当然也欢迎你[贡献](https://github.com/al-one/hass-xiaomi-miot/edit/master/custom_components/xiaomi_miot/core/translation_languages.py)你的词典给其他人👏🏻。 ```yaml # configuration.yaml xiaomi_miot: language: zh # 使用内置词典,目前仅支持`zh` # https://github.com/al-one/hass-xiaomi-miot/blob/master/custom_components/xiaomi_miot/core/translation_languages.py translations: # 全局词典,对所有实体生效 idle: '空闲' busy: '工作中' # 指定风扇模式的词典 fan.mode: straight wind: '直吹模式' natural wind: '自然风' # 指定洗衣机烘干模式的词典 washer.drying_level: moist: '微湿' extra: '特干' ``` ### [自定义实体](https://github.com/al-one/hass-xiaomi-miot/issues/100#issuecomment-864678774) ```yaml # configuration.yaml homeassistant: customize: !include customize.yaml # 通过设备型号自定义 xiaomi_miot: # https://github.com/al-one/hass-xiaomi-miot/blob/master/custom_components/xiaomi_miot/core/device_customizes.py device_customizes: chuangmi.plug.212a01: miot_local: true chunk_properties: 7 # 通过父实体自定义 # customize.yaml domain.your_entity_id: miot_local: true # 使用本地模式 (通过账号接入的设备) miot_cloud: true # 为该实体开启云端模式 (read, write, action) miot_cloud_write: true # 仅写属性使用云端模式 miot_cloud_action: true # 仅action使用云端模式 check_lan: true # 云端模式下检查设备在局域网是否可用 miio_properties: power,battery # 获取miio属性到实体的属性中 miio_cloud_props: prop.power,event.dev_online # 自定义子实体 domain.parent_entity_id: sensor_properties: temperature,humidity,illumination # Miot属性 binary_sensor_properties: is_volume_muted,any_boolen_property switch_properties: on,power number_properties: volume select_properties: mode fan_properties: mode,fan_level cover_properties: motor_control light.your_entity_id: color_temp_reverse: false # 反转色温(需重载集成配置) yeelight_smooth_on: 2000 # 毫秒 (仅支持本地接入的易来灯) yeelight_smooth_off: 3000 # 毫秒 (仅支持本地接入的易来灯) climate.your_entity_id: bind_sensor: sensor.temperature_entity,sensor.humidity_entity # 绑定传感器实体 camera.your_entity_id: video_attribute: 1 # https://github.com/al-one/hass-xiaomi-miot/issues/11#issuecomment-773054167 keep_streaming: true # 持续更新流地址 cover.your_entity_id: closed_position: 5 # 当实体位置值小于等于此值时为关闭状态 deviated_position: 2 # 位置偏差值 2% -> 0%, 98% -> 100% motor_reverse: true # 反转电机状态(需重载集成配置) position_reverse: true # 反转电机进程(需重载集成配置) open_texts: 打开,升 close_texts: 关闭,降 media_player.mitv_entity_id: bind_xiaoai: media_player.xiaoai_entity_id # 绑定小爱音箱以打开电视 turn_off_screen: true # 关闭电视/投影时发送熄屏指令 screenshot_compress: 20 # 指定电视/投影屏幕截图的压缩率 默认为50%,100时质量最高 sources_via_apps: 桌面,米家,百度网盘,设置 # 将电视内的APP添加到输入源列表 sources_via_keycodes: menu,enter,back # 将电视遥控按键添加到输入源列表 mitv_lan_host: 192.168.31.66 # 指定小米电视的局域网IP domain.your_entity_id_xxxx: interval_seconds: 30 # 每次更新状态间隔秒数(需重载集成配置) chunk_properties: 10 # 单次查询设备属性的最大个数(LAN) reverse_state: true # 反转开关状态(仅作用于Binary Sensor) ``` ### 过滤实体属性 > 过多的实体属性会导致你的HA数据库变得很庞大,如果某些实体属性对你没有用处,你可以配置`exclude_state_attributes`来忽略它们 ```yaml # configuration.yaml xiaomi_miot: exclude_state_attributes: - miot_type - stream_address - motion_video_latest ``` ### YAML配置重载 本插件支持配置重载(修改YAML配置后无需重启[HomeAssistant](https://www.home-assistant.io)): > [🔨 开发者工具](https://my.home-assistant.io/redirect/developer_states) > [YAML 重载](https://my.home-assistant.io/redirect/server_controls) > 配置重载 > 🔍 `重载 XIAOMI MIOT AUTO` ## [支持的设备](https://github.com/al-one/hass-xiaomi-miot/issues/12) - 🔌 [插座](https://home.miot-spec.com/s/plug) / [开关](https://home.miot-spec.com/s/switch) - 💡 [智能灯](https://home.miot-spec.com/s/light) - ❄️ [空调](https://home.miot-spec.com/s/aircondition) / [空调伴侣](https://home.miot-spec.com/s/acpartner) / [红外空调](https://home.miot-spec.com/s/miir.aircondition) - 🌀 [风扇](https://home.miot-spec.com/s/fan) / [凉霸](https://home.miot-spec.com/s/ven_fan) - 🛀 [浴霸](https://home.miot-spec.com/s/bhf_light) / 🔥 [取暖器](https://home.miot-spec.com/s/heater) / [温控器](https://home.miot-spec.com/s/airrtc) - 📷 [摄像头](https://home.miot-spec.com/s/camera) / [猫眼/可视门铃](https://home.miot-spec.com/s/cateye) [❓️](https://github.com/al-one/hass-xiaomi-miot/issues/100#issuecomment-903078604) - 📺 [电视](https://home.miot-spec.com/s/tv) / 📽️ [投影仪](https://home.miot-spec.com/s/projector) / [机顶盒](https://home.miot-spec.com/s/tvbox) - 🗣️ [小爱音箱](https://home.miot-spec.com/s/wifispeaker) [❓️](https://github.com/al-one/hass-xiaomi-miot/issues/100#issuecomment-885989099) - 🎮️ [万能遥控器](https://home.miot-spec.com/s/chuangmi.remote) [❓️](https://github.com/al-one/hass-xiaomi-miot/commit/fbcc8063783e53b9480574536a034d338634f4e8#commitcomment-56563663) - 🔐 [智能门锁](https://home.miot-spec.com/s/lock) / 🚪 [智慧门](https://home.miot-spec.com/s/door) - 👕 [洗衣机](https://home.miot-spec.com/s/washer) / [干衣机](https://home.miot-spec.com/s/dry) / [冰箱](https://home.miot-spec.com/s/fridge) - 🚰 [净水器](https://home.miot-spec.com/s/waterpuri) / [饮水机](https://home.miot-spec.com/s/kettle) - ♻️ [空气净化器](https://home.miot-spec.com/s/airpurifier) / [新风机](https://home.miot-spec.com/s/airfresh) / [油烟机](https://home.miot-spec.com/s/hood) - 🌡 [温湿度传感器](https://home.miot-spec.com/s/sensor_ht) / [水侵传感器](https://home.miot-spec.com/s/flood) / [烟雾传感器](https://home.miot-spec.com/s/sensor_smoke) - 🥘 [电饭煲](https://home.miot-spec.com/s/cooker) / [压力锅](https://home.miot-spec.com/s/pre_cooker) / [电蒸锅](https://home.miot-spec.com/s/esteamer) - 🍲 [电磁炉](https://home.miot-spec.com/s/ihcooker) / [烤箱](https://home.miot-spec.com/s/oven) / [微波炉](https://home.miot-spec.com/s/microwave) - 🍗 [空气炸锅](https://home.miot-spec.com/s/fryer) / [多功能锅](https://home.miot-spec.com/s/mfcp) - 🍵 [养生壶](https://home.miot-spec.com/s/health_pot) / ☕️ [咖啡机](https://home.miot-spec.com/s/coffee) - 🍹 [破壁机](https://home.miot-spec.com/s/juicer) / [搅拌机](https://home.miot-spec.com/s/juicer) / [果蔬清洗机](https://home.miot-spec.com/s/f_washer) - ♨️ [热水器](https://home.miot-spec.com/s/waterheater) / [洗碗机](https://home.miot-spec.com/s/dishwasher) / [足浴器](https://home.miot-spec.com/s/foot_bath) - 🦠 [消毒柜](https://home.miot-spec.com/s/steriliser) / [毛巾架](https://home.miot-spec.com/s/.tow) - 🪟 [窗帘电机](https://home.miot-spec.com/s/curtain) / [开窗器](https://home.miot-spec.com/s/wopener) / [晾衣机](https://home.miot-spec.com/s/airer) - 🧹 [扫地/扫拖机器人](https://home.miot-spec.com/s/vacuum) / [擦地机](https://home.miot-spec.com/s/.mop) - 💦 [加湿器](https://home.miot-spec.com/s/humidifier) / [除湿器](https://home.miot-spec.com/s/derh) / [除味器](https://home.miot-spec.com/s/diffuser) - 🍃 [空气检测仪](https://home.miot-spec.com/s/airmonitor) / 🪴 [植物监测仪](https://home.miot-spec.com/s/plantmonitor) - 🛏 [电动床](https://home.miot-spec.com/s/bed) / [电热毯/水暖床垫](https://home.miot-spec.com/s/blanket) / 😴 [睡眠监测仪](https://home.miot-spec.com/s/lunar) - 💺 [办公椅](https://home.miot-spec.com/s/chair) / [升降桌](https://home.miot-spec.com/s/desk) - 💆 [按摩椅](https://home.miot-spec.com/s/massage) / [按摩仪](https://home.miot-spec.com/s/magic_touch) - 🏃 [走步机](https://home.miot-spec.com/s/walkingpad) / [跑步机](https://home.miot-spec.com/s/treadmill) - 🚽 [马桶(盖)](https://home.miot-spec.com/s/toilet) / [猫砂盆](https://home.miot-spec.com/s/litter_box) / 🪥 [牙刷](https://home.miot-spec.com/s/toothbrush) - 🐱 [宠物喂食器](https://home.miot-spec.com/s/feeder) / ⛲ [宠物饮水机](https://home.miot-spec.com/s/pet_waterer) / 🐟 [鱼缸](https://home.miot-spec.com/s/fishbowl) - 🦟 [驱蚊器](https://home.miot-spec.com/s/mosq) / [消毒/灭菌灯](https://home.miot-spec.com/s/s_lamp) - 🚘 [智能后视镜](https://home.miot-spec.com/s/rv_mirror) / [抬头显示HUD](https://home.miot-spec.com/s/hud) - ⌚️ [智能/儿童手表](https://home.miot-spec.com/s/watch) / [手环](https://home.miot-spec.com/s/bracelet) - 🚶 [人体传感器](https://home.miot-spec.com/s/motion) / 🧲 [门窗传感器](https://home.miot-spec.com/s/magnet) [❓️](https://github.com/al-one/hass-xiaomi-miot/issues/100#issuecomment-909031222) - 📳 [动静贴](https://home.miot-spec.com/s/vibration) - 🌐 [路由器](https://home.miot-spec.com/s/router) / 🖨 [打印机](https://home.miot-spec.com/s/printer) ### 不支持的设备 > 本插件使用轮询的方式获取设备状态,因此无法实时监听部分设备的事件 - 无线场景开关类 (如: [lumi.sensor_switch.v1](https://home.miot-spec.com/s/lumi.sensor_switch.v1) / [lumi.remote.b686opcn01](https://home.miot-spec.com/s/lumi.remote.b686opcn01)) - 人体传感器类 (如: [lumi.sensor_motion.v1](https://home.miot-spec.com/s/lumi.sensor_motion.v1)) - 门窗传感器类 (如: [lumi.sensor_magnet.v1](https://home.miot-spec.com/s/lumi.sensor_magnet.v1)) ## 服务 > 由于HA支持服务响应已经有一段时间了,本组件自v0.7.18开始不再触发事件。 #### [`xiaomi_miot.set_property`](https://my.home-assistant.io/redirect/developer_call_service/?service=xiaomi_miot.set_property) ```yaml service: xiaomi_miot.set_property data: entity_id: camera.isa_hlc7_xxxx field: camera_control.on value: true ``` #### [`xiaomi_miot.set_miot_property`](https://my.home-assistant.io/redirect/developer_call_service/?service=xiaomi_miot.set_miot_property) ```yaml service: xiaomi_miot.set_miot_property data: entity_id: camera.isa_hlc7_xxxx siid: 2 piid: 1 value: true ``` #### [`xiaomi_miot.get_properties`](https://my.home-assistant.io/redirect/developer_call_service/?service=xiaomi_miot.get_properties) ```yaml service: xiaomi_miot.get_properties data: entity_id: camera.isa_hlc7_1ab7 mapping: - siid: 2 piid: 1 - siid: 3 piid: 2 update_entity: true # 更新实体状态属性 ``` #### [`xiaomi_miot.call_action`](https://my.home-assistant.io/redirect/developer_call_service/?service=xiaomi_miot.call_action) ```yaml service: xiaomi_miot.call_action data: entity_id: vacuum.dreame_p2259_entity_id siid: 4 # vacuum-extend aiid: 1 # start-clean params: - 18 # piid: 1 - work-mode - '{"selects":[[7,1,0,2,1]]}' # piid: 10 - clean-extend-data ``` #### [`xiaomi_miot.send_command`](https://my.home-assistant.io/redirect/developer_call_service/?service=xiaomi_miot.send_command) ```yaml service: xiaomi_miot.send_command data: entity_id: switch.your_entity_id method: set_power params: - on ``` #### [`xiaomi_miot.get_token`](https://my.home-assistant.io/redirect/developer_call_service/?service=xiaomi_miot.get_token) ```yaml service: xiaomi_miot.get_token data: name: Light # 米家中的设备名称关键词或IP、型号 ``` #### [`xiaomi_miot.intelligent_speaker`](https://my.home-assistant.io/redirect/developer_call_service/?service=xiaomi_miot.intelligent_speaker) ```yaml service: xiaomi_miot.intelligent_speaker data: entity_id: media_player.xiaoai_lx04_xxxx text: Turn on the light execute: true # 执行指令 silent: true # 静默执行 ``` #### [`xiaomi_miot.xiaoai_wakeup`](https://my.home-assistant.io/redirect/developer_call_service/?service=xiaomi_miot.xiaoai_wakeup) ```yaml service: xiaomi_miot.xiaoai_wakeup data: entity_id: media_player.xiaoai_lx04_xxxx ``` #### [`xiaomi_miot.renew_devices`](https://my.home-assistant.io/redirect/developer_call_service/?service=xiaomi_miot.renew_devices) ```yaml service: xiaomi_miot.renew_devices data: username: 80001234 # 小米账号ID/登录邮箱/手机号 ``` #### [`xiaomi_miot.request_xiaomi_api`](https://my.home-assistant.io/redirect/developer_call_service/?service=xiaomi_miot.request_xiaomi_api) ```yaml service: xiaomi_miot.request_xiaomi_api data: entity_id: sensor.your_entity_id api: /v2/plugin/fetch_plugin data: latest_req: api_version: 10070 plugins: - model: brand.device.model ``` > 查看[更多服务](https://github.com/al-one/hass-xiaomi-miot/blob/master/custom_components/xiaomi_miot/services.yaml) ## 调试 ### 获取实体状态属性 > [🔨 开发者工具](https://my.home-assistant.io/redirect/developer_states) > [ℹ️ 状态](https://my.home-assistant.io/redirect/developer_states) > 🔍 筛选实体 ### [获取调试日志](https://www.home-assistant.io/integrations/logger) ```yaml # 使用HA服务 (无需重启) service: logger.set_level data: custom_components.xiaomi_miot: debug # 或者修改 configuration.yaml (需重启) logger: default: warning logs: custom_components.xiaomi_miot: debug ``` > [⚙️ 配置](https://my.home-assistant.io/redirect/config) > [⚙️ 系统](https://my.home-assistant.io/redirect/system_dashboard) > [✍️ 日志](https://my.home-assistant.io/redirect/logs) ## 交流 - TG群:[@xiaomi_miot](https://t.me/xiaomi_miot) - QQ群:[198841186](https://jq.qq.com/?_wv=1027&k=lZAMn5Uo) (已满) - 微信群: xiaomi miot weixin group ## 获取 miio token - 使用HomeAssistant服务 1. 打开HomeAssistant服务工具 [![](https://my.home-assistant.io/badges/developer_services.svg)](https://my.home-assistant.io/redirect/developer_services/) 2. 选择服务[`xiaomi_miot.get_token`](https://my.home-assistant.io/redirect/developer_call_service/?service=xiaomi_miot.get_token),输入设备名称关键词 3. 在HA通知列表中找到token - 使用[@vevsvevs](https://github.com/custom-components/ble_monitor/issues/7#issuecomment-595874419)修改版的米家 1. 下载APK [СКАЧАТЬ ВЕРСИЮ 7.x.x](https://www.vevs.me/2017/11/mi-home.html) 并安装 2. 打开米家APP > 我的 > 实验室功能 3. 打开`Write custom log files`和`Enable app's debug mode` 4. 重启APP后在`vevs/logs/misc/devices.txt`文件中找到token ## 鸣谢 - [PyCharm](https://www.jetbrains.com/pycharm/) - [Dler](https://dler.pro/auth/register?affid=130833) (新用户10%折扣代码`CXVbfhHuSRsi`)