Replace Custom Sensor Icon

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Replace Custom Sensor Icon

Post 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
The most dangerous phrase in any language is:
"We always done this way"
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest