Field Type Required Description
_id string + Id of a scene
status object + Status of the scene and of all its children
status.state string + State of the whole scene. Possible statuses: , , , . is returned if the state can’t be read from DB
status.lastChange string + Time of the last change in status, local time. If state change time wasn’t recorded, is returned
status.error string / object Contains error information for corrupted scene
status.when array of objects + An array of when blocks’ states
status.exceptions array of objects + An array of exception blocks’ states
status.blocks[]._id string + Id of a when block
status.blocks[].name string + Name of an event or a logical operator (isItemState, compareNumbers; or, xor, function etc)
status.blocks[].blockName string Block name given by a user
status.blocks[].state string + State of a when block. Possible statuses: , , , . is returned if the state can’t be read from DB
status.blocks[].lastChange string + Time of the last change in status, local time. If state change time wasn’t recorded, is returned
status.blocks[].function object If the node is a function operator, contains information about it
status.blocks[].function.name string + If the node is a function operator, contains a function name (pulse, follow, latch, for, etc)
status.blocks[].function.isLatched boolean If the function is a latch, contains if a function is latched, otherwise
status.blocks[].blocks array of objects An array of statuses of nested when blocks if any