-
-
Notifications
You must be signed in to change notification settings - Fork 659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gosund 30W GaN智能排插WP12 開關狀態 unavailable #1749
Comments
懷疑是因為裝置有過多的同時查詢,導致部份開關的查詢被裝置回應 busy 錯誤,因而造成開關狀態進入 unavailable 測試在 custom_components/xiaomi_miot/switch.py 增加一行 PARALLEL_UPDATES = 3,再重啟 HA,之後就沒有再一直出現 unavailable 開關狀態
|
Thanks ! |
@al-one PARALLEL_UPDATES 我沒有了解其運作機制,只用於驗證設備的通訊問題能否緩解,請再評估一下是否直接使用 Request parallelism 的介紹 PARALLEL_UPDATES 是控制 integration level 的 semaphore,其套用的範圍太廣,數字應該不太好調校,這也許會拖慢狀態更新與控制,建議有 device level 的 semaphore 機制來處理此問題 |
我已新增自定义选项 |
看起來沒有問題,非常感謝 :) |
Device model / 设备型号
cuco.plug.wp12
Component version / 插件版本
0.7.18
HA core version / HA版本
2024.7.1
Integrated mode / 集成方式
Automatic (自动模式)
The problem / 问题详情
這個智能排插下有 10 個 switch,沒有任何操作的狀況下,部份 switch 不定時會隨機進入 unavailable 狀態或回復正常狀態
PR #1748
有關 Issues #1646 #381 #1218 #1140 ...
Entity attributes / 实体属性
Home Assistant Logs / 系统日志
The text was updated successfully, but these errors were encountered: