Property name in JSONata expressions of scheduler and state node has been renamed to node and turned into an expression variable, therefore must be accessed as $node now.
Property config in JSONata expressions of scheduler and state node has been turned into an expression variable and must therefore be accessed as $config now.
Property schedule in JSONata expressions of scheduler node has been renamed to event and turned into an expression variable, therefore must be accessed as $event now.
Property state in JSONata expressions of state node has been turned into an expression variable and must therefore be accessed as $state now.
Added
Added expression variables $node and $config to all available JSONata expressions.
Added possibility to configure states without associated trigger time in state nodes. Such states can only be activated manually from outside via an input message and command "set".
Extended possible input formats of time properties for time change nodes. They now match the formats that have already been introduced for time switch and filter nodes in the last release.
Added passive trigger mode to state nodes. 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.
Added new command "trigger" for input messages of state nodes. This command accompanies the new passive trigger mode and is used to trigger state changes from outside.
Added new command "getid" for input messages of state nodes. This command can be used to query the identifier of the currently active state.
Changed
Turned some properties in JSONata expressions to expression variables, see breaking changes above for details.
Renamed some properties/variables in JSONata expressions, see breaking changes above for details.
Changed the color of the stateless state in state nodes from yellow to grey in the Node-RED editor.
Fixed
Fixed a potential crash of state nodes when being in stateless state and a state is activated from outside.
‼️ Breaking Changes ‼️
name
in JSONata expressions of scheduler and state node has been renamed tonode
and turned into an expression variable, therefore must be accessed as$node
now.config
in JSONata expressions of scheduler and state node has been turned into an expression variable and must therefore be accessed as$config
now.schedule
in JSONata expressions of scheduler node has been renamed toevent
and turned into an expression variable, therefore must be accessed as$event
now.state
in JSONata expressions of state node has been turned into an expression variable and must therefore be accessed as$state
now.Added
$node
and$config
to all available JSONata expressions.Changed
Fixed