feat: Add event-based automation triggers (#2537)

This commit is contained in:
Dermot Duffy authored and dermotduffy committed 2026-06-30 17:45:13 -07:00
1 parent b701366762
commit a31816c168
109 files changed
+4607 -1623

No files matched your search

@@ -28,8 +28,9 @@ const getTypes = (
// composites.
const COMPOSITES = ['or', 'and', 'not'];
// `config` only ever detects a change, so it is a trigger but not a condition.
const TRIGGER_ONLY = ['config'];
// `config` only ever detects a change, and `event` is HA-side trigger-only (HA
// has no `condition: event` -- events are momentary).
const TRIGGER_ONLY = ['config', 'event'];
// `user`/`user_agent` are static per session, so they are conditions but not
// triggers.