Retrieve text or description from event


#1

I’m trying to retrieve either of these properties from a handled event .

description Back Door is closed
linkText Back Door

This code:

	log.debug "$evt.value: $evt.description $evt.linkText"

just returns this:

open: zw device: 05, command: 3003, payload: FF Back Door, switches:[switches]]

It looks like description and rawDescription are being mixed up.

rawDescription zw device: 05, command: 3003, payload: FF

Does anybody else see this?

10:36:57 PM: debug open: contact:open contacts, [contacts:[contacts], switches:[switches]]

Any tips?


(David Sansom) #2

Hi,

evt.desciption returns a rather verbose string, basically the raw one.
evt.descriptionText returns a simple, more readable one

HTH,
Dave