Repository navigation
Replies: 8 comments 1 reply
|
Hi @Ltek 👋 This is a great direction — thanks for taking the time to sketch it out so concretely. The "Profiles as shareable JSON" angle in particular is something I hadn't fully thought through, and it clicks. Let me react honestly on where we are. What already exists in that directionThe card ships with an Alert Templates Library (v1.3.9.9.7 onwards) — 11 pre-built bundles (batteries, doors/windows, water leaks, motion, updates, cameras, doorbell stack, presence, climate, offline detection, fire/CO). Each bundle uses HA's This already covers a slice of the "less config needed" idea, but it's static: the bundles are curated, not user-authored rules. What you're describing goes furtherI read your proposal as three layers stacked on top of each other:
All three make sense, but they're very different amounts of work, and they can (should) ship independently. Where I need your helpBefore I commit to a roadmap I'd love to prioritize based on what YOU actually reach for in practice. Could you tell me:
If we're honest, "Intelligence" is a strong word — the card wouldn't be doing anything AI-like, it'd be evaluating deterministic rules. But the practical outcome (less manual config, smarter matching) is the same, and that's what matters. Would love your reactions to the 4 questions above — with those answers I can put a real proposal on the table. |
|
@djdevil The 'Rules Engine' defines criteria ( 'intelligence' ) the card acts upon. One defined, you'd never need to modify the rules since rules are dynamic (evaluated real-time). Not tied to specific entities, automation notifications, scene, etc #3 is a rule (really part of a rule) to monitor some/all (user selectable) of the HA notifications that go through the system (Persistent UI, mobile, 3rd part integration, etc). it simply intercepts the notification. Super easy
|
|
Hi @Ltek, Thanks for the pointer to easy-entity-styler-card — useful reference. v1.4.0 (planned ~2 weeks) — Rules engine, first slice
Later
Out of scopeNotification interception (subscribing to persistent/mobile notification events and parsing them). This duplicates what HA automations already do well, and the payload shape varies across platforms/versions. Keeping the card focused on evaluating state. Closing this as answered — reopening on v1.4.0 ship. 🙏 |
|
@djdevil per you last comment
You may not get what I mean, HA does not do any of this, not At All -- which means it definitely cannot do it 'well' ;-) . HA does not have any way to automatically (without 3rd party code) route or duplicate mobile notifications to a dashboard card, entity, or log. None of these, at all. The native notification system is basic an lacks in almost every way. To band-aid some of this I wrote code for multiple things. All of which should be native IMO... yet nothing even close does. Heck, we don't even have notification group helpers. What I'm proposing is that since you have the the visual alerts side nailed, why not provide simple interceptions/routing of existing notifications... its very simple to do it after you add the rules engine, you just add a function to read the notifications like I have in my 'Notification Historical Log and Entity' (linked below), and if the rule matches, boom... post the Alert. Notification Historical Log and Entity Notification Manager Card Repeating Notifications |
|
Hi @Ltek, One more correction on my part — I kept narrowing scope with each reply and over-corrected. Let me put the full honest picture out: What already works in v1.3.11 (that I didn't credit)Your "Area = Entry AND time between 21:00-06:00" example is already configurable today: alerts:
- area_filter: "Entry"
operator: "="
state: "on"
time_range: { from: "21:00", to: "06:00" }
theme: emergencySame with But: this capability is buried inside the per-alert config instead of in a dedicated, discoverable Rules UI. From the outside, if you don't dig into the YAML schema or editor fields, it's invisible. Your card's visual pattern (Include/Exclude + match ALL/ANY + flat row list) is a much better UX surface. What doesn't exist today and is actually new workThree legitimate gaps from your original post:
Plus some new matching primitives that would naturally live in the Rules tab: Revised v1.4.0 plan — full scopeRealistic estimate: 10-12 days of focused work. Shipping as v1.4.0 since it's genuinely a minor-version expansion (new tab, new source type, new config shape). Phase 1 — Rules tab UI (~4 days) Phase 2 — Notification routing (~3 days) Phase 3 — Profiles (~3 days) Phase 4 — Translations + polish (~2 days) What's NOT in v1.4.0
TimingStarting after v1.3.11 has 3-5 days of real-world feedback (currently just released this morning). Will push WIP commits to a feature branch so you can poke at it before release if you want. Marking this discussion as the v1.4.0 tracking thread. Thanks for the patience through my three partial responses — the scope is settled now. |
|
removed, see new post |
|
@djdevil I spent ~4 hrs today working on this and have most of of code done.
Summary... GOAL: Rules live in one of two places:
1. Existing features that move into the rules engine
Unchanged: single-entity alerts, plus everything about display and behavior: themes, messages, snooze, persistent, group, TTS, push, overlay, actions, Existing YAML keeps working unchanged. The card converts old configs in memory when it loads them. The editor converts an alert when it's opened, and the change is saved on the next save. A test converts every combination of the old fields and checks that the card shows exactly the same alerts as before. 2. What's newReusable rule sets
Notification alerts (new)
Editor
Easier to Use with Simplified UI and Better Code Performance
3. Duplicate code removed, and expected performance
Performance (estimates based on a benchmark with 2,000 entities and 10 filter alerts)
|


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Would love to see actual Automation and Intelligence (in additional to the nice visuals). It could be as simple as user defined Rules which determine what notifications are bubbled up... without need to tell the system on each and every action/activity/alerts.
... etc
To go one step farther... you could then create a "Profile" which is a set with a Theme and Rules, in a single package that people could even share the JSON definition for. Rules can be system agnostic if defined using Labels, Areas, etc... the user simply imports the JSON and adjusts (if needed) the Lable/Area/etc
All reactions