fix: silence Mijia "设备状态" notices, keep door-lock alerts
com.xiaomi.smarthome posts both generic status updates (title=米家, content=设备状态) and concrete events (e.g. 智能门锁开锁). Silence only the generic "设备状态" ones; door-lock/security alerts still forward. Filtered silently before the blacklist. CLAUDE.md synced. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -106,6 +106,10 @@ class NotificationProcessor(private val context: Context) {
|
||||
if (pkg in silentPackages)
|
||||
return Decision(null, "常驻通知静默", appLabel, null, silent = true)
|
||||
|
||||
// ---- 米家泛化状态通知静默("设备状态"等概览;门锁/告警等具体事件保留)----
|
||||
if (pkg == "com.xiaomi.smarthome" && content.contains("设备状态"))
|
||||
return Decision(null, "米家状态通知静默", appLabel, null, silent = true)
|
||||
|
||||
// ---- App 黑白名单 ----
|
||||
if (!rules.isForwardingOn(pkg))
|
||||
return Decision(null, "此 App 已关", appLabel, null)
|
||||
|
||||
Reference in New Issue
Block a user