Edit

One condition: triggers when the field is changed to

				
					{
    "blockOptions": {
        "method": {
            "args": {
                "device": "device",
                "armed": "armed"
            },
            "name": "isDeviceState"
        }
    },
    "blockType": "when",
    "fields": [
        {
            "name": "device",
            "type": "device",
            "value": "deviceId"
        },
        {
            "name": "armed",
            "type": "bool",
            "value": true
        }
    ]
}				
			
Edit

One condition: triggers when the is changed to

				
					{
    "blockOptions": {
        "method": {
            "args": {
                "device": "device",
                "reachable": "reachable"
            },
            "name": "isDeviceState"
        }
    },
    "blockType": "when",
    "fields": [
        {
            "name": "device",
            "type": "device",
            "value": "deviceId"
        },
        {
            "name": "reachable",
            "type": "bool",
            "value": true
        }
    ]
}				
			
Edit

Multiple conditions: triggers, when the is equal to and the , is equal to the first time. Holds the state till any of these fields change their values

				
					{
    "blockOptions": {
        "method": {
            "args": {
                "device": "device",
                "reachable": "reachable",
                "armed": "armed"
            },
            "name": "isDeviceState"
        }
    },
    "blockType": "when",
    "fields": [
        {
            "name": "device",
            "type": "device",
            "value": "deviceId"
        },
        {
            "name": "armed",
            "type": "bool",
            "value": false
        },
        {
            "name": "reachable",
            "type": "bool",
            "value": true
        }

    ]
}