block currently supports one or several events (conditions) and these blocks are connected by OR logical operators by default.
block json representation:
Field
Type
Required
Description
blockOptions
JsonObject
+
Options of the block
blockOptions.method
JsonObject
+
Json representation of the function for triggering
blockOptions.method.args
JsonObject
+
Json object with the names of the fields that must be extracted from the list
blockOptions.method.name
string
+
Describes the event type. Possible values: see below
blockType
string
–
Name of the block type. Should be set as “when”
blockName
string
–
User name of block
actionGroup
string
–
ID of an action group that this “when” block is linked to. Must be unique within the space of “when” blocks. After scene creation the value is replaced with the ID of the “when” block.
fields
JsonArray
+
Array of the triggers. There is used the same format as it is in the then block but item address, values etc