Paul Shawn ef56448dbb
refactor: refactor miot device and spec (#592)
* fix: fix miot_device type error

* fix: fix type error

* feat: remove spec cache storage

* feat: update std_lib and multi_lang logic

* feat: update entity value-range

* feat: update value-list logic

* feat: update prop.format_ logic

* fix: fix miot cloud log error

* fix: fix fan entity

* style: ignore type error

* style: rename spec_filter func name

* feat: move bool_trans from storage to spec

* feat: move sepc_filter from storage to spec, use the YAML format file

* feat: same prop supports multiple sub

* feat: same event supports multiple sub

* fix: fix device remove error

* feat: add func slugify_did

* fix: fix multi lang error

* feat: update action debug logic

* feat: ignore normal disconnect log

* feat: support binary mode

* feat: change miot spec name type define

* style: ignore i18n tranlate type error

* fix: fix pylint warning

* fix: miot storage type error

* feat: support binary display mode configure

* feat: set default sensor state_class

* fix: fix sensor entity type error

* fix: fix __init__ type error

* feat: update test case logic

* fix: github actions add dependencies lib

* fix: fix some type error

* feat: update device list changed notify logic
2025-01-17 18:14:31 +08:00

156 lines
6.5 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"config": {
"other": {
"devices": "個設備",
"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": "家庭名 和 房間名 (米家 臥室)",
"room": "房間名 (臥室)",
"home": "家庭名 (米家)"
},
"option_status": {
"enable": "啟用",
"disable": "禁用"
},
"binary_mode": {
"text": "文本傳感器實體",
"bool": "二進制傳感器實體"
},
"device_state": {
"add": "新增",
"del": "不可用",
"offline": "離線"
},
"lan_ctrl_config": {
"notice_net_dup": "\r\n**[提示]** 檢測到多個網卡可能連接同一個網絡,請注意選擇。",
"net_unavailable": "接口不可用"
}
},
"oauth2": {
"success": {
"title": "認證成功",
"content": "請關閉此頁面,返回帳號認證頁面點擊“下一步”",
"button": "關閉"
},
"fail": {
"title": "認證失敗",
"content": "{error_msg},請關閉此頁面,返回帳號認證頁面重新點擊認鏈接進行認證。",
"button": "關閉"
},
"error_msg": {
"-10100": "無效的響應參數“code”或者“state”字段為空",
"-10101": "傳入的“state”字段不一致"
}
},
"miot": {
"client": {
"invalid_oauth_info": "認證信息失效,雲端鏈路將不可用,請進入 Xiaomi Home 集成頁面,點擊“選項”重新認證",
"invalid_device_cache": "緩存設備信息異常,請進入 Xiaomi Home 集成頁面,點擊`選項->更新設備列表`,更新本地設備信息",
"invalid_cert_info": "無效的用戶證書,本地中樞鏈路將不可用,請進入 Xiaomi Home 集成頁面,點擊“選項”重新認證",
"device_cloud_error": "從雲端獲取設備信息異常,請檢查本地網絡連接",
"xiaomi_home_error_title": "Xiaomi Home 集成錯誤",
"xiaomi_home_error": "檢測到 **{nick_name}({uid}, {cloud_server})** 出現錯誤,請進入選項頁面重新配置。\n\n**錯誤信息**: \n{message}",
"device_list_changed_title": "Xiaomi Home設備列表變化",
"device_list_changed": "檢測到 **{nick_name}({uid}, {cloud_server})** 設備信息發生變化,請進入集成選項頁面,點擊`選項->更新設備列表`,更新本地設備信息。\n\n當前網絡狀態{network_status}\n{message}\n",
"device_list_add": "\n**{count} 個新增設備:** \n{message}",
"device_list_del": "\n**{count} 個設備不可用:** \n{message}",
"device_list_offline": "\n**{count} 個設備離線:** \n{message}",
"network_status_online": "在線",
"network_status_offline": "離線",
"device_exec_error": "執行錯誤"
}
},
"error": {
"common": {
"-10000": "未知錯誤",
"-10001": "服務不可用",
"-10002": "參數無效",
"-10003": "資源不足",
"-10004": "內部錯誤",
"-10005": "權限不足",
"-10006": "執行超時",
"-10007": "設備離線或者不存在",
"-10020": "未授權OAuth2",
"-10030": "無效的tokenHTTP",
"-10040": "無效的消息格式",
"-10050": "無效的證書",
"-704000000": "未知錯誤",
"-704010000": "未授權(設備可能被刪除)",
"-704014006": "沒找到設備描述",
"-704030013": "Property不可讀",
"-704030023": "Property不可寫",
"-704030033": "Property不可訂閱",
"-704040002": "Service不存在",
"-704040003": "Property不存在",
"-704040004": "Event不存在",
"-704040005": "Action不存在",
"-704040999": "功能未上線",
"-704042001": "Device不存在",
"-704042011": "設備離線",
"-704053036": "設備操作超時",
"-704053100": "設備在當前狀態下無法執行此操作",
"-704083036": "設備操作超時",
"-704090001": "Device不存在",
"-704220008": "無效的ID",
"-704220025": "Action參數個數不匹配",
"-704220035": "Action參數錯誤",
"-704220043": "Property值錯誤",
"-704222034": "Action返回值錯誤",
"-705004000": "未知錯誤",
"-705004501": "未知錯誤",
"-705201013": "Property不可讀",
"-705201015": "Action執行錯誤",
"-705201023": "Property不可寫",
"-705201033": "Property不可訂閱",
"-706012000": "未知錯誤",
"-706012013": "Property不可讀",
"-706012015": "Action執行錯誤",
"-706012023": "Property不可寫",
"-706012033": "Property不可訂閱",
"-706012043": "Property值錯誤",
"-706014006": "沒找到設備描述"
}
}
}