i-assertion-config

Configuration object for an assertion block

Name i-assertion-config
Type Interface
Path packages/blocks/src/building-blocks/assertion.ts

Properties

Name Type Description
predicate (client: IHass, input?: I) => Promise<boolean> | boolean | { result: boolean; output: O; } | Promise<{ result: boolean; output: O; }> When this block is executed by an automation it should return a boolean either as the direct return value, or as the 'result' property on an object.If that value is false, it will indicate to the execution engine that the automation should finish