Presence Device Image at Smartapp


(Luis Alonzo) #1

Hi Guys,

I’m making a smartapp where you select all presence devices available, and later it leaves you to setup different actions for each one.

Basically what i have is an initial “input devices”, and later i create one href to another page, to each devices to setup them up individually. I would like to display the icon/image associated to each presence device in the same smartapp, to make it look nicer.

I’m have errors in this part, specficially in this line:
href(name: “NewUser:$person”, title: “$person”, description: null , page: “NuevoUsuario”, image: person.myDeviceIcon)

What do i place in “image”, is there a way to get the current icon from the person device? something like person.icon() or person.getIcon()?