NonZero

NonZero is a method (or type) of rule used to assign a state to your asset.

Parameters

NameUsage
propertyThe ARDI property to read from
zeroThe state when the property is zero
nonzeroThe state when the property is anything other than zero

Notes

The 'property' value should be the name of an ARDI property found on all of the resources.

When that value is 0, the final state will be taken from the zero property. Otherwise, it will be taken from the nonzero property.

Example

If you're matching with a single value, such as the example below…

{   
   "method": "NonZero",
    "property": "Speed",
    "zero": "Stopped",
    "nonzero": "Running"
}

The state of this resource will be 'Stopped' when the speed is zero, and 'Running' when non-zero.