jensrossbach / node-red-contrib-chronos

Time-based Node-RED scheduling, repeating, queueing, routing, filtering and manipulating nodes
https://jensrossbach.github.io/node-red-contrib-chronos
MIT License
28 stars 1 forks source link

Support for passive trigger mode in state node #157

Closed jensrossbach closed 3 months ago

jensrossbach commented 3 months ago

This pull request adds the passive trigger mode to the state node.

In this mode, the state node will not actively change states upon reaching their trigger times. Instead, state changes must be triggered by an external trigger source via input message. This allows for instance to operate a state node and a scheduler node in tandem processing having the scheduler node acting as external timer for the state node. The state node will note schedule any own timers in this (except timers for a specified timeout in the "set" command of an input message).

The new mode also introduces the new command "trigger" for input messages which must be used by external trigger sources.