Page 1 of 1

Replace Custom Sensor Icon

Posted: Tuesday 24 October 2017 12:59
by emme
Ciao,

Willing to reflect a text custom device icon with another one based on its value... but got a problem in update it...

my code include:

local myTextDev = dz.devices('Text Device')

dz.log(myTextDev.icon)
-- return 'text'

myTextDev.icon = 'My custom Icon'
dz.log(myTextDev.icon)
-- return 'My custom Icon'

but I did not see any change in the device layout....
is there the possibility to update it?

thanks
ciao
M