Compare commits

...

6 Commits

Author SHA1 Message Date
Paul Shawn
0a6e4e64b5
Merge cd0b13e49e into 9af59e28bd 2024-12-23 15:15:24 +00:00
topsworld
cd0b13e49e feat: support option flow devices filter 2024-12-23 23:15:13 +08:00
Li Shuzhen
9af59e28bd
docs: specify the download process in HACS installation (#371)
Some checks are pending
Tests / check-rule-format (push) Waiting to run
Validate / validate-hassfest (push) Waiting to run
Validate / validate-hacs (push) Waiting to run
Validate / validate-lint (push) Waiting to run
Validate / validate-setup (push) Waiting to run
* docs: specify the download process in HACS installation

* docs: revoke login authorization
2024-12-23 22:40:57 +08:00
topsworld
24e85b358a fix: fix option flow type error 2024-12-23 22:40:04 +08:00
topsworld
043ac14237 doc: update translations for option flow 2024-12-23 22:11:51 +08:00
topsworld
ab5fac9f45 fix: fix some type error 2024-12-23 22:01:06 +08:00
14 changed files with 624 additions and 253 deletions

View File

@ -32,7 +32,7 @@ git checkout v1.0.0
### Method 2: [HACS](https://hacs.xyz/)
HACS > Overflow Menu > Custom repositories > Repository: https://github.com/XiaoMi/ha_xiaomi_home.git & Category: Integration > ADD
HACS > Overflow Menu > Custom repositories > Repository: https://github.com/XiaoMi/ha_xiaomi_home.git & Category: Integration > ADD > Xiaomi Home in New or Available for download section of HACS > DOWNLOAD
> Xiaomi Home has not been added to the HACS store as a default yet. It's coming soon.
@ -76,6 +76,8 @@ Method: [Settings > Devices & services > Configured > Xiaomi Home](https://my.ho
Xiaomi Home Integration and the affiliated cloud interface is provided by Xiaomi officially. You need to use your Xiaomi account to login to get your device list. Xiaomi Home Integration implements OAuth 2.0 login process, which does not keep your account password in the Home Assistant application. However, due to the limitation of the Home Assistant platform, the user information (including device information, certificates, tokens, etc.) of your Xiaomi account will be saved in the Home Assistant configuration file in clear text after successful login. You need to ensure that your Home Assistant configuration file is properly stored. The exposure of your configuration file may result in others logging in with your identity.
> If you suspect that your OAuth 2.0 token has been leaked, you can revoke the login authorization of your Xiaomi account by the following steps: Xiaomi Home APP -> Profile -> Click your username and get into Xiaomi Account management page -> Basic info: Apps -> Xiaomi Home (Home Assistant Integration) -> Remove
## FAQ
- Does Xiaomi Home Integration support all Xiaomi Home devices?

File diff suppressed because it is too large Load Diff

View File

@ -114,8 +114,24 @@
"title": "Familie und Geräte neu auswählen",
"description": "## Gebrauchsanweisung\r\n### Steuerungsmodus\r\n- Automatisch: Wenn im lokalen Netzwerk ein verfügbarer Xiaomi-Zentralgateway vorhanden ist, wird Home Assistant bevorzugt Steuerbefehle über den Zentralgateway senden, um eine lokale Steuerung zu ermöglichen. Wenn im lokalen Netzwerk kein Zentralgateway vorhanden ist, wird versucht, Steuerbefehle über das Xiaomi-OT-Protokoll zu senden, um eine lokale Steuerung zu ermöglichen. Nur wenn die oben genannten Bedingungen für die lokale Steuerung nicht erfüllt sind, werden die Steuerbefehle über die Cloud gesendet.\r\n- Cloud: Steuerbefehle werden nur über die Cloud gesendet.\r\n### Familienimport für importierte Geräte\r\nDie Integration fügt Geräte aus den ausgewählten Familien hinzu.\r\n \r\n### Hallo {nick_name}! Bitte wählen Sie den Steuerungsmodus der Integration sowie die Familie aus, in der sich die hinzuzufügenden Geräte befinden.",
"data": {
"ctrl_mode": "Steuerungsmodus",
"home_infos": "Familienimport für importierte Geräte"
"home_infos": "Familienimport für importierte Geräte",
"devices_filter": "Geräte filtern",
"ctrl_mode": "Steuerungsmodus"
}
},
"devices_filter": {
"title": "Geräte filtern",
"description": "## Gebrauchsanweisung\r\n- Unterstützt das Filtern von Geräten nach Raumnamen und Gerätetypen sowie das Filtern nach Gerätedimensionen.\r\n- Sie können auch die entsprechende Integrationsoption \"Konfiguration> Geräteliste aktualisieren\" aufrufen, um die Filterung erneut durchzuführen.",
"data": {
"statistics_logic": "Statistiklogik",
"room_filter_mode": "Familienraum filtern",
"room_list": "Familienraum",
"type_filter_mode": "Gerätetyp filtern",
"type_list": "Gerätetyp",
"model_filter_mode": "Gerätemodell filtern",
"model_list": "Gerätemodell",
"devices_filter_mode": "Geräte filtern",
"device_list": "Geräteliste"
}
},
"update_trans_rules": {

View File

@ -114,8 +114,24 @@
"title": "Re-select Home and Devices",
"description": "## Usage Instructions\r\n### Control mode\r\n- Auto: When there is an available Xiaomi central hub gateway in the local area network, Home Assistant will prioritize sending device control commands through the central hub gateway to achieve local control. If there is no central hub gateway in the local area network, it will attempt to send control commands through Xiaomi LAN control function. Only when the above local control conditions are not met, the device control commands will be sent through the cloud.\r\n- Cloud: All control commands are sent through the cloud.\r\n### Import devices from home\r\nThe integration will add devices from the selected homes.\r\n \r\n### Hello {nick_name}, please select the integration control mode and the home where the device you want to import.",
"data": {
"ctrl_mode": "Control mode",
"home_infos": "Import devices from home"
"home_infos": "Import devices from home",
"devices_filter": "Filter devices",
"ctrl_mode": "Control mode"
}
},
"devices_filter": {
"title": "Filter Devices",
"description": "## Introduction\r\n- Supports filtering devices by room name and device type, and also supports device dimension filtering.\r\n- You can also re-filter on the corresponding integration page [Configuration>Update Device List].",
"data": {
"statistics_logic": "Statistics Logic",
"room_filter_mode": "Filter Family Rooms",
"room_list": "Family Rooms",
"type_filter_mode": "Filter Device Connect Type",
"type_list": "Device Connect Type",
"model_filter_mode": "Filter Device Model",
"model_list": "Device Model",
"devices_filter_mode": "Filter Devices",
"device_list": "Device List"
}
},
"update_trans_rules": {

View File

@ -114,8 +114,24 @@
"title": "Recomendar hogares y dispositivos",
"description": "## Instrucciones de uso\r\n### Modo de control\r\n- Automático: Cuando hay un gateway central de Xiaomi disponible en la red local, Home Assistant priorizará el envío de comandos de control de dispositivos a través del gateway central para lograr un control localizado. Si no hay un gateway central en la red local, intentará enviar comandos de control a través del protocolo Xiaomi OT para lograr un control localizado. Solo cuando no se cumplan las condiciones anteriores de control localizado, los comandos de control del dispositivo se enviarán a través de la nube.\r\n- Nube: Los comandos de control solo se envían a través de la nube.\r\n### Hogares de dispositivos importados\r\nLa integración agregará los dispositivos en los hogares seleccionados.\r\n \r\n### ¡Hola, {nick_name}! Seleccione el modo de control de integración y el hogar donde se encuentran los dispositivos que desea agregar.",
"data": {
"ctrl_mode": "Modo de control",
"home_infos": "Hogares de dispositivos importados"
"home_infos": "Hogares de dispositivos importados",
"devices_filter": "Filtrar Dispositivos",
"ctrl_mode": "Modo de control"
}
},
"devices_filter": {
"title": "Filtrar Dispositivos",
"description": "## Introducción\r\n- Admite la filtración de dispositivos por nombre de habitación y tipo de dispositivo, y también admite la filtración por familia.\r\n- También puede volver a filtrar en la página correspondiente de la integración [Configuración>Actualizar lista de dispositivos].",
"data": {
"statistics_logic": "Lógica de Estadísticas",
"room_filter_mode": "Filtrar Habitaciones de la Familia",
"room_list": "Habitaciones de la Familia",
"type_filter_mode": "Filtrar Tipo de Dispositivo",
"type_list": "Tipo de Dispositivo",
"model_filter_mode": "Filtrar Modelo de Dispositivo",
"model_list": "Modelo de Dispositivo",
"devices_filter_mode": "Filtrar Dispositivos",
"device_list": "Lista de Dispositivos"
}
},
"update_trans_rules": {

View File

@ -114,8 +114,24 @@
"title": "Re-sélectionner une maison et des appareils",
"description": "## Instructions d'utilisation\r\n### Mode de contrôle\r\n- Automatique: Lorsqu'il y a une passerelle centrale Xiaomi disponible dans le réseau local, Home Assistant priorisera l'envoi des commandes de contrôle des appareils via la passerelle centrale pour réaliser un contrôle localisé. S'il n'y a pas de passerelle centrale dans le réseau local, il tentera d'envoyer des commandes de contrôle via le protocole Xiaomi OT pour réaliser un contrôle localisé. Ce n'est que lorsque les conditions de contrôle localisé ci-dessus ne sont pas remplies que les commandes de contrôle des appareils seront envoyées via le cloud.\r\n- Cloud: Les commandes de contrôle ne sont envoyées que via le cloud.\r\n### Importer une maison pour les appareils\r\nL'intégration ajoutera les appareils de la maison sélectionnée.\r\n \r\n### {nick_name} Bonjour ! Veuillez sélectionner le mode de contrôle de l'intégration et la maison où se trouvent les appareils à ajouter.",
"data": {
"ctrl_mode": "Mode de contrôle",
"home_infos": "Importer une maison pour les appareils"
"home_infos": "Importer une maison pour les appareils",
"devices_filter": "Filtrer les Appareils",
"ctrl_mode": "Mode de contrôle"
}
},
"devices_filter": {
"title": "Filtrer les Appareils",
"description": "## Introduction\r\n- Prend en charge le filtrage des appareils en fonction du nom de la pièce et du type d'appareil, ainsi que le filtrage basé sur les appareils.\r\n- Vous pouvez également accéder à la page de filtrage correspondante de l'intégration [Configuration> Mettre à jour la liste des appareils] pour refiltrer.",
"data": {
"statistics_logic": "Logique de Statistiques",
"room_filter_mode": "Filtrer les Pièces",
"room_list": "Pièces",
"type_filter_mode": "Filtrer les Types d'Appareils",
"type_list": "Types d'Appareils",
"model_filter_mode": "Filtrer les Modèles d'Appareils",
"model_list": "Modèles d'Appareils",
"devices_filter_mode": "Filtrer les Appareils",
"device_list": "Liste des Appareils"
}
},
"update_trans_rules": {

View File

@ -114,8 +114,24 @@
"title": "ホームとデバイスを再度選択",
"description": "## 使用方法\r\n### 制御モード\r\n- 自動: ローカルエリアネットワーク内に利用可能なXiaomi中央ゲートウェイが存在する場合、Home Assistantは中央ゲートウェイを介してデバイス制御コマンドを優先的に送信し、ローカル制御機能を実現します。ローカルエリアネットワーク内に中央ゲートウェイが存在しない場合、Xiaomi OTプロトコルを介して制御コマンドを送信し、ローカル制御機能を実現しようとします。上記のローカル制御条件が満たされない場合にのみ、デバイス制御コマンドはクラウドを介して送信されます。\r\n- クラウド: 制御コマンドはクラウドを介してのみ送信されます。\r\n### 導入されたデバイスのホーム\r\n統合は、選択された家庭にあるデバイスを追加します。\r\n \r\n### {nick_name} さん、こんにちは! 統合制御モードと追加するデバイスがあるホームを選択してください。",
"data": {
"ctrl_mode": "制御モード",
"home_infos": "導入されたデバイスのホーム"
"home_infos": "導入されたデバイスのホーム",
"devices_filter": "デバイスをフィルタリング",
"ctrl_mode": "制御モード"
}
},
"devices_filter": {
"title": "デバイスをフィルタリング",
"description": "## 紹介\r\n- 部屋名とデバイスタイプでデバイスをフィルタリングすることができます。デバイスの次元でフィルタリングすることもできます。\r\n- 対応する統合項目【設定>デバイスリストの更新】ページに移動して再度フィルタリングすることもできます。",
"data": {
"statistics_logic": "統計ロジック",
"room_filter_mode": "家族の部屋をフィルタリング",
"room_list": "家族の部屋",
"type_filter_mode": "デバイスタイプをフィルタリング",
"type_list": "デバイスタイプ",
"model_filter_mode": "デバイスモデルをフィルタリング",
"model_list": "デバイスモデル",
"devices_filter_mode": "デバイスをフィルタリング",
"device_list": "デバイスリスト"
}
},
"update_trans_rules": {

View File

@ -114,8 +114,24 @@
"title": "Huis en Apparaten opnieuw selecteren",
"description": "## Gebruiksinstructies\r\n### Controlemodus\r\n- Auto: Wanneer er een beschikbare Xiaomi centrale hubgateway in het lokale netwerk is, geeft Home Assistant de voorkeur aan het verzenden van apparaatbedieningscommando's via de centrale hubgateway om lokale controle te bereiken. Als er geen centrale hubgateway in het lokale netwerk is, zal het proberen bedieningscommando's te verzenden via de Xiaomi LAN-controlefunctie. Alleen wanneer de bovenstaande lokale controlevoorwaarden niet zijn vervuld, worden de apparaatbedieningscommando's via de cloud verzonden.\r\n- Cloud: Alle bedieningscommando's worden via de cloud verzonden.\r\n### Apparaten importeren vanuit huis\r\nDe integratie voegt apparaten toe van de geselecteerde huizen.\r\n \r\n### Hallo {nick_name}, selecteer alstublieft de integratie controlemethodiek en het huis waar het apparaat dat u wilt importeren zich bevindt.",
"data": {
"ctrl_mode": "Controlemodus",
"home_infos": "Importeer apparaten uit huis"
"home_infos": "Importeer apparaten uit huis",
"devices_filter": "Apparaten filteren",
"ctrl_mode": "Controlemodus"
}
},
"devices_filter": {
"title": "Apparaten filteren",
"description": "## Inleiding\r\n- Ondersteunt het filteren van apparaten op basis van kamer- en apparaattypen, en ondersteunt ook apparaatdimensiefiltering.\r\n- U kunt ook naar de overeenkomstige integratie-item [Configuratie>Apparaatlijst bijwerken] pagina gaan om opnieuw te filteren.",
"data": {
"statistics_logic": "Statistische logica",
"room_filter_mode": "Kamerfiltermodus",
"room_list": "Kamers",
"type_filter_mode": "Apparaattypen filteren",
"type_list": "Apparaattypen",
"model_filter_mode": "Apparaatmodel filteren",
"model_list": "Apparaatmodellen",
"devices_filter_mode": "Apparaten filteren",
"device_list": "Apparaatlijst"
}
},
"update_trans_rules": {

View File

@ -114,8 +114,24 @@
"title": "Selecionar novamente Casa e Dispositivos",
"description": "## Instruções de Uso\r\n### Modo de controle\r\n- Auto: Quando houver um gateway central Xiaomi disponível na rede local, o Home Assistant priorizará o envio de comandos através dele para obter controle local. Caso não haja, tentará enviar comandos através da função de controle LAN da Xiaomi. Somente se as condições anteriores não forem atendidas, o controle será feito pela nuvem.\r\n- Nuvem: Todos os comandos de controle são enviados pela nuvem.\r\n### Importar dispositivos da casa\r\nA integração adicionará dispositivos das casas selecionadas.\r\n \r\n### Olá {nick_name}, selecione o modo de controle da integração e a casa de onde deseja importar dispositivos.",
"data": {
"ctrl_mode": "Modo de controle",
"home_infos": "Importar dispositivos da casa"
"home_infos": "Importar dispositivos da casa",
"devices_filter": "Filtrar Dispositivos",
"ctrl_mode": "Modo de controle"
}
},
"devices_filter": {
"title": "Filtrar Dispositivos",
"description": "## Introdução\r\n- Suporte para filtrar dispositivos por nome da sala e tipo de dispositivo, bem como filtragem por família.\r\n- Você também pode acessar a página correspondente da integração [Configuração>Atualizar Lista de Dispositivos] para refiltrar.",
"data": {
"statistics_logic": "Lógica de Estatísticas",
"room_filter_mode": "Filtrar por Sala",
"room_list": "Salas",
"type_filter_mode": "Filtrar por Tipo de Dispositivo",
"type_list": "Tipos de Dispositivo",
"model_filter_mode": "Filtrar por Modelo de Dispositivo",
"model_list": "Modelos de Dispositivo",
"devices_filter_mode": "Filtrar Dispositivos",
"device_list": "Lista de Dispositivos"
}
},
"update_trans_rules": {

View File

@ -114,8 +114,24 @@
"title": "Selecionar novamente a Casa e os Dispositivos",
"description": "## Instruções de Utilização\r\n### Modo de Controlo\r\n- Automático: Quando houver um gateway central Xiaomi disponível na rede local, o Home Assistant priorizará o envio de comandos através dele para obter controlo local. Se não existir um gateway central, tentará enviar comandos através da função de controlo LAN da Xiaomi. Apenas se estas condições não forem satisfeitas, os comandos serão enviados pela nuvem.\r\n- Nuvem: Todos os comandos de controlo são enviados através da nuvem.\r\n### Importar dispositivos da casa\r\nA integração adicionará dispositivos das casas selecionadas.\r\n \r\n### Olá {nick_name}, selecione o modo de controlo da integração e a casa da qual pretende importar dispositivos.",
"data": {
"ctrl_mode": "Modo de Controlo",
"home_infos": "Importar dispositivos da casa"
"home_infos": "Importar dispositivos da casa",
"devices_filter": "Filtrar Dispositivos",
"ctrl_mode": "Modo de Controlo"
}
},
"devices_filter": {
"title": "Filtrar Dispositivos",
"description": "## Introdução\r\n- Suporta a filtragem de dispositivos por nome de sala e tipo de dispositivo, bem como a filtragem por família.\r\n- Pode também aceder à página de configuração correspondente da integração [Configuração > Atualizar Lista de Dispositivos] para refazer a filtragem.",
"data": {
"statistics_logic": "Lógica de Estatísticas",
"room_filter_mode": "Filtrar por Sala",
"room_list": "Salas",
"type_filter_mode": "Filtrar por Tipo de Dispositivo",
"type_list": "Tipos de Dispositivo",
"model_filter_mode": "Filtrar por Modelo de Dispositivo",
"model_list": "Modelos de Dispositivo",
"devices_filter_mode": "Filtrar Dispositivos",
"device_list": "Lista de Dispositivos"
}
},
"update_trans_rules": {

View File

@ -114,8 +114,24 @@
"title": "Выберите дом и устройства",
"description": "## Инструкция по использованию\r\n### Режим управления\r\n- Авто: Когда в локальной сети доступен центральный шлюз Xiaomi, Home Assistant будет в первую очередь отправлять команды управления устройствами через центральный шлюз для достижения локализованного управления. Если в локальной сети нет центрального шлюза, он попытается отправить команды управления через протокол Xiaomi OT для достижения локализованного управления. Только если вышеуказанные условия локализованного управления не выполняются, команды управления устройствами будут отправляться через облако.\r\n- Облако: Команды управления отправляются только через облако.\r\n### Импорт домашнего устройства\r\nИнтеграция добавит устройства из выбранных домов.\r\n \r\n### {nick_name} Здравствуйте! Выберите режим управления интеграцией и дом, в котором находятся устройства, которые вы хотите добавить.",
"data": {
"ctrl_mode": "Режим управления",
"home_infos": "Импорт домашнего устройства"
"home_infos": "Импорт домашнего устройства",
"devices_filter": "Фильтрация устройств",
"ctrl_mode": "Режим управления"
}
},
"devices_filter": {
"title": "Фильтрация устройств",
"description": "## Введение\r\n- Поддерживает фильтрацию устройств по названию комнаты и типу устройства, а также фильтрацию по уровню устройства.\r\n- Вы также можете перейти на соответствующую страницу интеграции [Настройки> Обновить список устройств], чтобы перефильтровать.",
"data": {
"statistics_logic": "Логика статистики",
"room_filter_mode": "Фильтрация по комнатам семьи",
"room_list": "Комнаты семьи",
"type_filter_mode": "Фильтрация по типу устройства",
"type_list": "Типы устройств",
"model_filter_mode": "Фильтрация по модели устройства",
"model_list": "Модели устройств",
"devices_filter_mode": "Фильтрация устройств",
"device_list": "Список устройств"
}
},
"update_trans_rules": {

View File

@ -43,7 +43,7 @@
},
"devices_filter": {
"title": "筛选设备",
"description": "## 使用介绍\r\n支持按照房间名称、设备接入类型、设备型号筛选设备同时也支持设备维度筛选。\r\n- 统计优先级:排除优先级高于包含优先级,会先取包含项,然后再排除。\r\n- 筛选优先级:筛选设备>筛选设备型号>筛选设备接入类型>筛选家庭房间\r\n### 统计逻辑\r\n- 与逻辑:取所有同模式筛选项的交集。\r\n- 或逻辑:取所有同模式筛选项的并集。\r\n### 筛选模式\r\n- 排除:移除不需要的项。\r\n- 包含:包含需要的项。\r\n- 您也可以进入对应集成项【配置>更新设备列表】页面重新筛选。",
"description": "## 使用介绍\r\n支持按照房间名称、设备接入类型、设备型号筛选设备同时也支持设备维度筛选。\r\n- 统计优先级:排除优先级高于包含优先级,会先取包含项,然后再排除。\r\n- 筛选优先级:筛选设备>筛选设备型号>筛选设备接入类型>筛选家庭房间\r\n### 统计逻辑\r\n- 与逻辑:取所有同模式筛选项的交集。\r\n- 或逻辑:取所有同模式筛选项的并集。\r\n### 筛选模式\r\n- 排除:移除不需要的项。\r\n- 包含:包含需要的项。\r\n\r\n您也可以进入对应集成项【配置>更新设备列表】页面重新筛选。",
"data": {
"statistics_logic": "统计逻辑",
"room_filter_mode": "筛选家庭房间",
@ -114,8 +114,24 @@
"title": "重新选择家庭与设备",
"description": "## 使用介绍\r\n### 控制模式\r\n- 自动:本地局域网内存在可用的小米中枢网关时, Home Assistant 会优先通过中枢网关发送设备控制指令以实现本地化控制功能。本地局域网不存在中枢时会尝试通过小米OT协议发送控制指令以实现本地化控制功能。只有当上述本地化控制条件不满足时设备控制指令才会通过云端发送。\r\n- 云端:控制指令仅通过云端发送。\r\n### 导入设备的家庭\r\n集成将添加已选中家庭中的设备。\r\n \r\n### {nick_name} 您好!请选择集成控制模式以及您想要添加的设备所处的家庭。",
"data": {
"ctrl_mode": "控制模式",
"home_infos": "导入设备的家庭"
"home_infos": "导入设备的家庭",
"devices_filter": "筛选设备",
"ctrl_mode": "控制模式"
}
},
"devices_filter": {
"title": "筛选设备",
"description": "## 使用介绍\r\n支持按照房间名称、设备接入类型、设备型号筛选设备同时也支持设备维度筛选。\r\n- 统计优先级:排除优先级高于包含优先级,会先取包含项,然后再排除。\r\n- 筛选优先级:筛选设备>筛选设备型号>筛选设备接入类型>筛选家庭房间\r\n### 统计逻辑\r\n- 与逻辑:取所有同模式筛选项的交集。\r\n- 或逻辑:取所有同模式筛选项的并集。\r\n### 筛选模式\r\n- 排除:移除不需要的项。\r\n- 包含:包含需要的项。\r\n\r\n您也可以进入对应集成项【配置>更新设备列表】页面重新筛选。",
"data": {
"statistics_logic": "统计逻辑",
"room_filter_mode": "筛选家庭房间",
"room_list": "家庭房间",
"type_filter_mode": "筛选设备接入类型",
"type_list": "设备接入类型",
"model_filter_mode": "筛选设备型号",
"model_list": "设备型号",
"devices_filter_mode": "筛选设备",
"device_list": "设备列表"
}
},
"update_trans_rules": {

View File

@ -114,8 +114,24 @@
"title": "重新選擇家庭與設備",
"description": "\r\n## 使用介紹\r\n### 控制模式\r\n- 自動:本地局域網內存在可用的小米中樞網關時, Home Assistant 會優先通過中樞網關發送設備控制指令,以實現本地化控制功能。只有當本地化控制條件不滿足時,設備控制指令才會通過雲端發送。\r\n- 雲端:控制指令強制通過雲端發送。\r\n### 導入設備的家庭\r\n集成將添加已選中家庭中的設備。\r\n \r\n### {nick_name} 您好!請選擇集成控制模式以及您想要添加的設備所處的家庭。",
"data": {
"ctrl_mode": "控制模式",
"home_infos": "導入設備的家庭"
"home_infos": "導入設備的家庭",
"devices_filter": "篩選設備",
"ctrl_mode": "控制模式"
}
},
"devices_filter": {
"title": "篩選設備",
"description": "## 使用介紹\r\n- 支持按照房間名稱和設備類型篩選設備,同時也支持設備維度篩選。\r\n- 您也可以進入對應集成項【配置>更新設備列表】頁面重新篩選。",
"data": {
"statistics_logic": "統計邏輯",
"room_filter_mode": "篩選家庭房間",
"room_list": "家庭房間",
"type_filter_mode": "篩選設備接入類型",
"type_list": "設備接入類型",
"model_filter_mode": "篩選設備型號",
"model_list": "設備型號",
"devices_filter_mode": "篩選設備",
"device_list": "設備列表"
}
},
"update_trans_rules": {

View File

@ -32,7 +32,7 @@ git checkout v1.0.0
### 方法 2: [HACS](https://hacs.xyz/)
HACS > Overflow Menu > Custom repositories > Repository: https://github.com/XiaoMi/ha_xiaomi_home.git & Category: Integration > ADD
HACS > 右上角三个点 > Custom repositories > Repository: https://github.com/XiaoMi/ha_xiaomi_home.git & Category: Integration > ADD > 点击 HACS 的 New 或 Available for download 分类下的 Xiaomi Home ,进入集成详情页 > DOWNLOAD
> 米家集成暂未添加到 HACS 商店,敬请期待。
@ -76,6 +76,8 @@ HACS > Overflow Menu > Custom repositories > Repository: https://github.com/Xiao
米家集成及其使用的云端接口由小米官方提供。您需要使用小米账号登录以获取设备列表。米家集成使用 OAuth 2.0 的登录方式,不会在 Home Assistant 中保存您的小米账号密码。但由于 Home Assistant 平台的限制,登录成功后,您的小米用户信息(包括设备信息、证书、 token 等)会明文保存在 Home Assistant 的配置文件中。因此,您需要保管好自己 Home Assistant 配置文件。一旦该文件泄露,其他人可能会冒用您的身份登录。
> 如果您怀疑您的 OAuth 2.0 令牌已泄露,您可以通过以下步骤取消小米账号的登录授权: 米家 APP -> 我的 -> 点击用户名进入小米账号页面 -> 应用授权 -> Xiaomi Home (Home Assistant Integration) -> 取消授权
## 常见问题
- 米家集成是否支持所有的小米米家设备?