Revert to ItemStateChangeTrigger
This commit is contained in:
@@ -150,7 +150,7 @@ class Watch {
|
|||||||
rules.JSRule({
|
rules.JSRule({
|
||||||
id: this.watchRuleID,
|
id: this.watchRuleID,
|
||||||
name: 'Watch rule for ' + this.#watchItem.name,
|
name: 'Watch rule for ' + this.#watchItem.name,
|
||||||
triggers: [triggers.ItemStateUpdateTrigger(this.#watchItem.name)],
|
triggers: [triggers.ItemStateChangeTrigger(this.#watchItem.name)],
|
||||||
execute: (event) => { this.#processItemEvent(event) },
|
execute: (event) => { this.#processItemEvent(event) },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user