Single trigger item.

interface TriggerItem {
    enabled?: boolean;
    id: string;
    operator: TriggerOperator;
    path: string;
    type: string;
    value: unknown;
}

Properties

enabled?: boolean

Whether the trigger is armed. Defaults to true on the server when absent.

id: string

Server-visible id (must be unique within the node's trigger list).

operator: TriggerOperator

Comparison operator applied to path's current value against value.

path: string

Dotted path locating the value to watch, e.g. "Light.Power".

type: string

Trigger source category (e.g. "param" for a device param trigger).

value: unknown

Right-hand side of the comparison.