josh
7
If it’s a raw object passed across from SmartThings, you would access the object properties similar to JSON notation with any language:
object.property
object[index]
So in the case of the context variable for the event value:
$context.event.value.someProperty
$context.event.value[0]
So maybe something like:
equalText($context.event.value[0].state, "present")
—-