Hi,
I need help on how to apply the child device icon from my service manager.
I know that this is a parameter in the addChildDevice but what is the syntax of the properties for the icon.
I have this d = addChildDevice(getChildNamespace(), getChildName(), dni,"", [
“label” : “Pod ${name.value}”,
“name” : “Pod ${name.value}”]
)
Any help?
Thank
I think I need to use this
// set the icon on the device
childDevice.setIcon("presence","present",icon)
childDevice.setIcon("presence","not present",icon)
childDevice.save()
But how to use it? I found this in the Life360 DeviceType
I found it myself !! Thank to me 
The first argument is the tile name, the second is the state, and the third is the icon to use.
like this:
childDevice.setIcon(“switch”,“on”,“st.Weather.weather7”)
childDevice.save()
1 Like
I was celebrate too early. As soon as I refresh my device. The icon is revert back to default. Not sure why…
CORRECTION:
The first argument is the STATE, the second is the TILE name, and the third is the icon to use.