feat: Support HA event entities as triggers (#2506)

This commit is contained in:
Dermot Duffy
2026-06-30 17:45:13 -07:00
committed by dermotduffy
parent f1fad59a89
commit 4b72fcd629
9 changed files with 371 additions and 19 deletions
+11
View File
@@ -110,6 +110,17 @@ export class TriggersManager {
return this._handleEndEvent(ev);
}
if (ev.type === 'signal') {
// A signal is momentary -- handled as a matched new+end so the existing
// untrigger_delay_seconds machinery gives it visible duration, and so
// concurrent continuous sources still gate untriggering correctly.
const handled = await this.handleCameraEvent({ ...ev, type: 'new' }, options);
if (handled) {
await this.handleCameraEvent({ ...ev, type: 'end' });
}
return handled;
}
// Ignore stale updates for force-untriggered IDs before doing any further
// processing to avoid re-activating muted IDs.
if (this._isIgnoredUpdateEvent(ev)) {