|  Developer
Updated on December 2, 2022

isGroupState

  • Triggered when the state of a when block of another scene is matched the condition (true, false, changed).
  • This feature is available since version.
Edit
Field Type Required Description
blockOptions.method.args.scene sceneId + ID of another scene
blockOptions.method.args.block string + ID of a when block of another scene
blockOptions.method.args.state string + The desired state: “true”, “false”, “changed”.
Edit
Internal error code Message Data
SCENE_WHEN_RECURSIVE_EXECUTE Scene contain conditions with current scene id scenes.when.recursive_execute
SCENE_CYCLE_DETECTED Requested action will create an infinite loop in scenes execution scenes.cycle.detected
SCENE_DOES_NOT_EXIST The scene with this id does not exist ezlo.scenes.not.exist
SCENE_ACTION_GROUP_NOT_EXIST The scene does not contain an action group with such ID ezlo.scenes.block.groups.not.exist
Edit
				
					{
    "blockType": "when",
    "blockOptions": {
        "method": {
            "name": "isGroupState",
            "args": {
                "scene":"scene",
                "group":"group",
                "state":"state"
            }
        }
    },
    "fields": [
        {
            "name": "scene",
            "type": "sceneId",
            "value": "5e4a5fef7f0000707ff6e9bd"
        },
        {
            "name": "group",
            "type": "string",
            "value": "5de64f6a70c7be0541cc0853"
        },
        {
            "name": "state",
            "type": "string",
            "value": "changed"
        }
    ]
}