feat: support devices filter & devices changed notify (#332)

* feat: add devices filter page

* doc: update translations and i18n

* fix: cancel miot http timer

* feat: improve devices filter

* doc: update translations/de

* fix: i18n type error

* feat: config flow support device filter

* fix: fix mdns type error

* fix: fix miot client i18n logic

* feat: add connect type

* doc: update translations and i18n

* feat: update auth info save logic

* feat: improve config flow devices filter

* fix: fix some type error

* doc: update translations for option flow

* fix: fix option flow type error

* feat: support option flow devices filter

* doc: update option flow tranlations

* feat: update webhook handle func to private

* feat: update config flow translations

* doc: update tranlations text

* feat: custom display device changed notify

* feat: device changed notify logical refinement

* doc: update translations content
This commit is contained in:
Paul Shawn
2024-12-24 21:28:50 +08:00
committed by GitHub
parent 78461cbd8a
commit 29b7489ac7
27 changed files with 1734 additions and 387 deletions

View File

@ -2,12 +2,48 @@
"config": {
"other": {
"devices": "Geräte",
"found_central_gateway": ", lokales zentrales Gateway gefunden"
"found_central_gateway": ", lokales zentrales Gateway gefunden",
"without_room": "Kein Raum zugewiesen",
"no_display": "nicht anzeigen"
},
"control_mode": {
"auto": "automatisch",
"cloud": "Cloud"
},
"statistics_logic": {
"or": "ODER-Logik",
"and": "UND-Logik"
},
"filter_mode": {
"exclude": "ausschließen",
"include": "einschließen"
},
"connect_type": {
"0": "WiFi",
"1": "yunyi-Gerät",
"2": "Cloud-Gerät",
"3": "ZigBee",
"4": "webSocket",
"5": "virtuelles Gerät",
"6": "BLE",
"7": "lokaler AP",
"8": "WiFi+BLE",
"9": "andere",
"10": "Funktions-Plug-in",
"11": "Zellnetz",
"12": "Kabel",
"13": "NB-IoT",
"14": "Drittanbieter-Cloud-Zugriff",
"15": "Infrarot-Fernbedienungsgerät",
"16": "BLE-Mesh",
"17": "virtuelle Gerätegruppe",
"18": "Gateway-Untergerät",
"19": "Sicherheitsstufe Gateway-Untergerät",
"22": "PLC",
"23": "nur Kabel",
"24": "Matter",
"25": "WiFi+Zellnetz"
},
"room_name_rule": {
"none": "nicht synchronisieren",
"home_room": "Hausname und Raumname (Xiaomi Home Schlafzimmer)",
@ -18,6 +54,11 @@
"enable": "aktivieren",
"disable": "deaktivieren"
},
"device_state": {
"add": "hinzufügen",
"del": "nicht verfügbar",
"offline": "offline"
},
"lan_ctrl_config": {
"notice_net_dup": "\r\n**[Hinweis]** Es wurden mehrere Netzwerkkarten erkannt, die möglicherweise mit demselben Netzwerk verbunden sind. Bitte achten Sie auf die Auswahl.",
"net_unavailable": "Schnittstelle nicht verfügbar"

View File

@ -2,12 +2,48 @@
"config": {
"other": {
"devices": "Devices",
"found_central_gateway": ", Found Local Central Hub Gateway"
"found_central_gateway": ", Found Local Central Hub Gateway",
"without_room": "No room assigned",
"no_display": "Do not display"
},
"control_mode": {
"auto": "Auto",
"cloud": "Cloud"
},
"statistics_logic": {
"or": "OR logic",
"and": "AND logic"
},
"filter_mode": {
"exclude": "Exclude",
"include": "Include"
},
"connect_type": {
"0": "WiFi",
"1": "yunyi device",
"2": "Cloud device",
"3": "ZigBee",
"4": "webSocket",
"5": "Virtual device",
"6": "BLE",
"7": "Local AP",
"8": "WiFi+BLE",
"9": "Other",
"10": "Function plug-in",
"11": "Cellular network",
"12": "Cable",
"13": "NB-IoT",
"14": "Third-party cloud access",
"15": "Infrared remote control device",
"16": "BLE-Mesh",
"17": "Virtual device group",
"18": "Gateway sub-device",
"19": "Security level gateway sub-device",
"22": "PLC",
"23": "Cable only",
"24": "Matter",
"25": "WiFi+Cellular network"
},
"room_name_rule": {
"none": "Do not synchronize",
"home_room": "Home Name and Room Name (Xiaomi Home Bedroom)",
@ -18,6 +54,11 @@
"enable": "Enable",
"disable": "Disable"
},
"device_state": {
"add": "Add",
"del": "Unavailable",
"offline": "Offline"
},
"lan_ctrl_config": {
"notice_net_dup": "\r\n**[Notice]** Multiple network cards detected that may be connected to the same network. Please pay attention to the selection.",
"net_unavailable": "Interface unavailable"

View File

@ -2,12 +2,48 @@
"config": {
"other": {
"devices": "dispositivos",
"found_central_gateway": ", se encontró la puerta de enlace central local"
"found_central_gateway": ", se encontró la puerta de enlace central local",
"without_room": "Sin habitación asignada",
"no_display": "no mostrar"
},
"control_mode": {
"auto": "automático",
"cloud": "nube"
},
"statistics_logic": {
"or": "lógica OR",
"and": "lógica AND"
},
"filter_mode": {
"exclude": "excluir",
"include": "incluir"
},
"connect_type": {
"0": "WiFi",
"1": "dispositivo yunyi",
"2": "dispositivo de nube",
"3": "ZigBee",
"4": "webSocket",
"5": "dispositivo virtual",
"6": "BLE",
"7": "AP local",
"8": "WiFi+BLE",
"9": "otro",
"10": "complemento de función",
"11": "red celular",
"12": "cable",
"13": "NB-IoT",
"14": "acceso a la nube de terceros",
"15": "dispositivo de control remoto infrarrojo",
"16": "BLE-Mesh",
"17": "grupo de dispositivos virtuales",
"18": "subdispositivo de puerta de enlace",
"19": "subdispositivo de puerta de enlace de nivel de seguridad",
"22": "PLC",
"23": "solo cable",
"24": "Matter",
"25": "WiFi+red celular"
},
"room_name_rule": {
"none": "no sincronizar",
"home_room": "nombre de la casa y nombre de la habitación (Xiaomi Home Dormitorio)",
@ -18,6 +54,11 @@
"enable": "habilitar",
"disable": "deshabilitar"
},
"device_state": {
"add": "agregar",
"del": "no disponible",
"offline": "fuera de línea"
},
"lan_ctrl_config": {
"notice_net_dup": "\r\n**[Aviso]** Se detectaron varias tarjetas de red que pueden estar conectadas a la misma red. Por favor, preste atención a la selección.",
"net_unavailable": "Interfaz no disponible"

View File

@ -2,12 +2,48 @@
"config": {
"other": {
"devices": "appareils",
"found_central_gateway": ", passerelle centrale locale trouvée"
"found_central_gateway": ", passerelle centrale locale trouvée",
"without_room": "Aucune pièce attribuée",
"no_display": "ne pas afficher"
},
"control_mode": {
"auto": "automatique",
"cloud": "cloud"
},
"statistics_logic": {
"or": "ou logique",
"and": "et logique"
},
"filter_mode": {
"exclude": "exclure",
"include": "inclure"
},
"connect_type": {
"0": "WiFi",
"1": "appareil yunyi",
"2": "appareil cloud",
"3": "ZigBee",
"4": "webSocket",
"5": "appareil virtuel",
"6": "BLE",
"7": "AP local",
"8": "WiFi+BLE",
"9": "autre",
"10": "plug-in de fonction",
"11": "réseau cellulaire",
"12": "câble",
"13": "NB-IoT",
"14": "accès cloud tiers",
"15": "appareil de télécommande infrarouge",
"16": "BLE-Mesh",
"17": "groupe d'appareils virtuels",
"18": "sous-appareil de passerelle",
"19": "niveau de sécurité sous-appareil de passerelle",
"22": "PLC",
"23": "câble uniquement",
"24": "Matter",
"25": "WiFi+réseau cellulaire"
},
"room_name_rule": {
"none": "ne pas synchroniser",
"home_room": "nom de la maison et nom de la pièce (Xiaomi Home Chambre)",
@ -18,6 +54,11 @@
"enable": "activer",
"disable": "désactiver"
},
"device_state": {
"add": "Ajouter",
"del": "Supprimer",
"offline": "hors ligne"
},
"lan_ctrl_config": {
"notice_net_dup": "\r\n**[Remarque]** Plusieurs cartes réseau détectées qui peuvent être connectées au même réseau. Veuillez faire attention à la sélection.",
"net_unavailable": "Interface non disponible"

View File

@ -2,12 +2,48 @@
"config": {
"other": {
"devices": "デバイス",
"found_central_gateway": "、ローカル中央ゲートウェイが見つかりました"
"found_central_gateway": "、ローカル中央ゲートウェイが見つかりました",
"without_room": "部屋が割り当てられていません",
"no_display": "表示しない"
},
"control_mode": {
"auto": "自動",
"cloud": "クラウド"
},
"statistics_logic": {
"or": "ORロジック",
"and": "ANDロジック"
},
"filter_mode": {
"exclude": "除外",
"include": "含む"
},
"connect_type": {
"0": "WiFi",
"1": "yunyiデバイス",
"2": "クラウドデバイス",
"3": "ZigBee",
"4": "webSocket",
"5": "仮想デバイス",
"6": "BLE",
"7": "ローカルAP",
"8": "WiFi+BLE",
"9": "その他",
"10": "機能プラグイン",
"11": "セルラーネットワーク",
"12": "ケーブル",
"13": "NB-IoT",
"14": "サードパーティクラウドアクセス",
"15": "赤外線リモコンデバイス",
"16": "BLE-Mesh",
"17": "仮想デバイスグループ",
"18": "ゲートウェイサブデバイス",
"19": "セキュリティレベルゲートウェイサブデバイス",
"22": "PLC",
"23": "ケーブルのみ",
"24": "Matter",
"25": "WiFi+セルラーネットワーク"
},
"room_name_rule": {
"none": "同期しない",
"home_room": "家の名前と部屋の名前 Xiaomi Home 寝室)",
@ -18,6 +54,11 @@
"enable": "有効",
"disable": "無効"
},
"device_state": {
"add": "追加",
"del": "利用不可",
"offline": "オフライン"
},
"lan_ctrl_config": {
"notice_net_dup": "\r\n**[注意]** 複数のネットワークカードが同じネットワークに接続されている可能性があります。選択に注意してください。",
"net_unavailable": "インターフェースが利用できません"

View File

@ -2,12 +2,48 @@
"config": {
"other": {
"devices": "Apparaten",
"found_central_gateway": ", Lokale centrale hub-gateway gevonden"
"found_central_gateway": ", Lokale centrale hub-gateway gevonden",
"without_room": "Niet toegewezen kamer",
"no_display": "Niet weergeven"
},
"control_mode": {
"auto": "Automatisch",
"cloud": "Cloud"
},
"statistics_logic": {
"or": "OF-logica",
"and": "EN-logica"
},
"filter_mode": {
"exclude": "Uitsluiten",
"include": "Inclusief"
},
"connect_type": {
"0": "WiFi",
"1": "yunyi-apparaat",
"2": "Cloudapparaat",
"3": "ZigBee",
"4": "webSocket",
"5": "Virtueel apparaat",
"6": "BLE",
"7": "Lokaal AP",
"8": "WiFi+BLE",
"9": "Andere",
"10": "Functieplug-in",
"11": "Cellulair netwerk",
"12": "Kabel",
"13": "NB-IoT",
"14": "Toegang van derden tot de cloud",
"15": "Infrarood afstandsbedieningsapparaat",
"16": "BLE-Mesh",
"17": "Virtuele apparaatgroep",
"18": "Gateway sub-apparaat",
"19": "Beveiligingsniveau gateway sub-apparaat",
"22": "PLC",
"23": "Alleen kabel",
"24": "Matter",
"25": "WiFi+Cellulair netwerk"
},
"room_name_rule": {
"none": "Niet synchroniseren",
"home_room": "Huisnaam en Kamernaam (Xiaomi Home Slaapkamer)",
@ -18,6 +54,11 @@
"enable": "Inschakelen",
"disable": "Uitschakelen"
},
"device_state": {
"add": "Toevoegen",
"del": "Niet beschikbaar",
"offline": "Offline"
},
"lan_ctrl_config": {
"notice_net_dup": "\r\n**[Let op]** Meerdere netwerkkaarten gedetecteerd die mogelijk zijn verbonden met hetzelfde netwerk. Let op bij de selectie.",
"net_unavailable": "Interface niet beschikbaar"
@ -92,4 +133,4 @@
"-706014006": "Apparaatbeschrijving niet gevonden"
}
}
}
}

View File

@ -2,12 +2,48 @@
"config": {
"other": {
"devices": "dispositivos",
"found_central_gateway": "encontrado o gateway central local"
"found_central_gateway": "encontrado o gateway central local",
"without_room": "sem quarto atribuído",
"no_display": "não exibir"
},
"control_mode": {
"auto": "automático",
"cloud": "nuvem"
},
"statistics_logic": {
"or": "lógica OU",
"and": "lógica E"
},
"filter_mode": {
"exclude": "excluir",
"include": "incluir"
},
"connect_type": {
"0": "WiFi",
"1": "dispositivo yunyi",
"2": "dispositivo de nuvem",
"3": "ZigBee",
"4": "webSocket",
"5": "dispositivo virtual",
"6": "BLE",
"7": "AP local",
"8": "WiFi+BLE",
"9": "outro",
"10": "plug-in de função",
"11": "rede celular",
"12": "cabo",
"13": "NB-IoT",
"14": "acesso à nuvem de terceiros",
"15": "dispositivo de controle remoto infravermelho",
"16": "BLE-Mesh",
"17": "grupo de dispositivos virtuais",
"18": "subdispositivo de gateway",
"19": "subdispositivo de gateway de nível de segurança",
"22": "PLC",
"23": "somente cabo",
"24": "Matter",
"25": "WiFi+rede celular"
},
"room_name_rule": {
"none": "não sincronizado",
"home_room": "Nome da casa e nome do quarto (Xiaomi Home Quarto)",
@ -18,6 +54,11 @@
"enable": "habilitado",
"disable": "desabilitado"
},
"device_state": {
"add": "adicionar",
"del": "indisponível",
"offline": "offline"
},
"lan_ctrl_config": {
"notice_net_dup": "\r\n**[Aviso]** Detectado múltiplas interfaces de rede que podem estar conectando à mesma rede, por favor, selecione a correta.",
"net_unavailable": "Interface indisponível"

View File

@ -2,12 +2,48 @@
"config": {
"other": {
"devices": "dispositivos",
"found_central_gateway": ", encontrou a central de gateway local"
"found_central_gateway": ", encontrou a central de gateway local",
"without_room": "Sem quarto atribuído",
"no_display": "Não exibir"
},
"control_mode": {
"auto": "Automático",
"cloud": "Nuvem"
},
"statistics_logic": {
"or": "Ou lógica",
"and": "E lógica"
},
"filter_mode": {
"exclude": "Excluir",
"include": "Incluir"
},
"connect_type": {
"0": "WiFi",
"1": "dispositivo yunyi",
"2": "dispositivo de nuvem",
"3": "ZigBee",
"4": "webSocket",
"5": "dispositivo virtual",
"6": "BLE",
"7": "AP local",
"8": "WiFi+BLE",
"9": "outro",
"10": "plug-in de função",
"11": "rede celular",
"12": "cabo",
"13": "NB-IoT",
"14": "acesso à nuvem de terceiros",
"15": "dispositivo de controle remoto infravermelho",
"16": "BLE-Mesh",
"17": "grupo de dispositivos virtuais",
"18": "subdispositivo de gateway",
"19": "subdispositivo de gateway de nível de segurança",
"22": "PLC",
"23": "somente cabo",
"24": "Matter",
"25": "WiFi+rede celular"
},
"room_name_rule": {
"none": "Não sincronizar",
"home_room": "Nome da casa e Nome do quarto (Xiaomi Home Quarto)",
@ -18,6 +54,11 @@
"enable": "Habilitar",
"disable": "Desabilitar"
},
"device_state": {
"add": "Adicionar",
"del": "Indisponível",
"offline": "Offline"
},
"lan_ctrl_config": {
"notice_net_dup": "\r\n**[Aviso]** Detectado que várias interfaces podem estar conectadas à mesma rede, escolha com cuidado.",
"net_unavailable": "Interface indisponível"

View File

@ -2,12 +2,48 @@
"config": {
"other": {
"devices": "устройства",
"found_central_gateway": ", найден локальный центральный шлюз"
"found_central_gateway": ", найден локальный центральный шлюз",
"without_room": "без комнаты",
"no_display": "не отображать"
},
"control_mode": {
"auto": "автоматический",
"cloud": "облако"
},
"statistics_logic": {
"or": "логика ИЛИ",
"and": "логика И"
},
"filter_mode": {
"exclude": "исключить",
"include": "включить"
},
"connect_type": {
"0": "WiFi",
"1": "yunyi устройство",
"2": "Облачное устройство",
"3": "ZigBee",
"4": "webSocket",
"5": "Виртуальное устройство",
"6": "BLE",
"7": "Локальный AP",
"8": "WiFi+BLE",
"9": "Другое",
"10": "Плагин функции",
"11": "Сотовая сеть",
"12": "Кабель",
"13": "NB-IoT",
"14": "Доступ к стороннему облаку",
"15": "Устройство с ИК-пультом дистанционного управления",
"16": "BLE-Mesh",
"17": "Группа виртуальных устройств",
"18": "Подустройство шлюза",
"19": "Подустройство шлюза уровня безопасности",
"22": "PLC",
"23": "Только кабель",
"24": "Matter",
"25": "WiFi+Сотовая сеть"
},
"room_name_rule": {
"none": "не синхронизировать",
"home_room": "название дома и название комнаты (Xiaomi Home Спальня)",
@ -18,6 +54,11 @@
"enable": "Включить",
"disable": "Отключить"
},
"device_state": {
"add": "Добавить",
"del": "Недоступно",
"offline": "Не в сети"
},
"lan_ctrl_config": {
"notice_net_dup": "\r\n**[Уведомление]** Обнаружено несколько сетевых карт, которые могут быть подключены к одной и той же сети. Пожалуйста, обратите внимание на выбор.",
"net_unavailable": "Интерфейс недоступен"

View File

@ -2,7 +2,9 @@
"config": {
"other": {
"devices": "个设备",
"found_central_gateway": ",发现本地中枢网关"
"found_central_gateway": ",发现本地中枢网关",
"without_room": "未分配房间",
"no_display": "不显示"
},
"control_mode": {
"auto": "自动",
@ -14,10 +16,49 @@
"room": "房间名 (卧室)",
"home": "家庭名 (米家)"
},
"statistics_logic": {
"or": "或逻辑",
"and": "与逻辑"
},
"filter_mode": {
"exclude": "排除",
"include": "包含"
},
"connect_type": {
"0": "WiFi",
"1": "yunyi设备",
"2": "云接入设备",
"3": "ZigBee",
"4": "webSocket",
"5": "虚拟设备",
"6": "BLE",
"7": "本地AP",
"8": "WiFi+BLE",
"9": "其他",
"10": "功能插件",
"11": "蜂窝网",
"12": "网线",
"13": "NB-IoT",
"14": "第三方云接入",
"15": "红外遥控器子设备",
"16": "BLE-Mesh",
"17": "虚拟设备组",
"18": "代理网关子设备",
"19": "安全级代理网关子设备",
"22": "PLC",
"23": "仅网线",
"24": "Matter",
"25": "WiFi+蜂窝网"
},
"option_status": {
"enable": "启用",
"disable": "禁用"
},
"device_state": {
"add": "新增",
"del": "不可用",
"offline": "离线"
},
"lan_ctrl_config": {
"notice_net_dup": "\r\n**[提示]** 检测到多个网卡可能连接同一个网络,请注意选择。",
"net_unavailable": "接口不可用"

View File

@ -2,12 +2,48 @@
"config": {
"other": {
"devices": "個設備",
"found_central_gateway": ",發現本地中樞網關"
"found_central_gateway": ",發現本地中樞網關",
"without_room": "未分配房間",
"no_display": "不顯示"
},
"control_mode": {
"auto": "自動",
"cloud": "雲端"
},
"statistics_logic": {
"or": "或邏輯",
"and": "與邏輯"
},
"filter_mode": {
"exclude": "排除",
"include": "包含"
},
"connect_type": {
"0": "WiFi",
"1": "yunyi設備",
"2": "雲接入設備",
"3": "ZigBee",
"4": "webSocket",
"5": "虛擬設備",
"6": "BLE",
"7": "本地AP",
"8": "WiFi+BLE",
"9": "其他",
"10": "功能插件",
"11": "蜂窩網",
"12": "網線",
"13": "NB-IoT",
"14": "第三方雲接入",
"15": "紅外遙控器子設備",
"16": "BLE-Mesh",
"17": "虛擬設備組",
"18": "代理網關子設備",
"19": "安全級代理網關子設備",
"22": "PLC",
"23": "僅網線",
"24": "Matter",
"25": "WiFi+蜂窩網"
},
"room_name_rule": {
"none": "不同步",
"home_room": "家庭名 和 房間名 (米家 臥室)",
@ -18,6 +54,11 @@
"enable": "啟用",
"disable": "禁用"
},
"device_state": {
"add": "新增",
"del": "不可用",
"offline": "離線"
},
"lan_ctrl_config": {
"notice_net_dup": "\r\n**[提示]** 檢測到多個網卡可能連接同一個網絡,請注意選擇。",
"net_unavailable": "接口不可用"