|  Developer
Updated on December 2, 2022

isDetectedInHotzone

  • Reacting on object/person is detected in a hot zone.
  • This feature is available since advanced_scenes/1.24.
Edit
Field Type Required Description
blockOptions.method.args.item item + The item id
blockOptions.method.args.hotzones array.token The identifiers of hotzones to check. If this value is not set then all hotzones are checked
blockOptions.method.args.match array.token + The match policy for hotzone items.
policy will succeed if any object is detected
policy will succeed if no objects are detected
policy will succeed if all filters specified in “filters” field are succeed
blockOptions.method.args.filters dictionary.hotzone_match The list of filters for detected objects. Dictionary key is detectable object types listed in camera_hotzone type. Filters (dictionary values) are hotzone_match types
Edit

Triggers when or , and both and is detected in or for item :

				
					{
    "blockType": "when",
    "blockOptions": {
        "method": {
            "name": "isDetectedInHotzone",
            "args": {
                "item": "item",
                "hotzones": "hotzones",
                "match": "filter",
                "filters": "filters"
            }
        }
    },
    "fields": [
        {
            "name": "item",
            "type": "item",
            "value": "45345345345232"
        },
        { 
            "name": "hotzones",
            "type": "array.token",
            "value": [ "hotzone1", "hotzone2" ] 
        },
        {
            "name": "match",
            "type": "token",
            "value": "filter"
        },
        {
            "name": "filters",
            "type": "dictionary.hotzone_match",
            "value": {
                "persons": {
                    "match": "anyOf",
                    "list": ["john_id", "sara_id"]
                },
                "objects": {
                    "match": "allOf",
                    "list": ["first_car_id", "second_car_id"]
                }
            }
        }
    ]
}				
			

Triggers when when any QR Code is detected for item :

				
					{
    "blockType": "when",
    "blockOptions": {
        "method": {
            "name": "isDetectedInHotzone",
            "args": {
                "item": "item",
                "match": "filter",
                "filters": "filters"
            }
        }
    },
    "fields": [
        {
            "name": "item",
            "type": "item",
            "value": "45345345345232"
        },
        {
            "name": "match",
            "type": "token",
            "value": "filter"
        },
        {
            "name": "filters",
            "type": "dictionary.hotzone_match",
            "value": {
                "qrcodes": {
                    "match": "any"
                }
            }
        }
    ]
}				
			

Triggers when when any motion is started for item :

				
					{
    "blockType": "when",
    "blockOptions": {
        "method": {
            "name": "isDetectedInHotzone",
            "args": {
                "item": "item",
                "match": "filter"
            }
        }
    },
    "fields": [
        {
            "name": "item",
            "type": "item",
            "value": "45345345345232"
        },
        {
            "name": "match",
            "type": "token",
            "value": "any"
        }
    ]
}