I've been trying to add custom icons for a plugin as described in the wiki page https://www.domoticz.com/wiki/Developin ... gin#Images but it doesn't work as expected.
Here's my code in the onStart callback:
Code: Select all
if 'girl' not in Images:
Domoticz.Image( Filename='girl_icons.zip' ).Create()
if 'boy' not in Images:
Domoticz.Image( Filename='boy_icons.zip' ).Create()
if deviceIdx not in Devices:
Domoticz.Device( Unit = deviceIdx,
Name = user,
Type = 244,
Subtype = 62,
Switchtype = 2,
Image = Images[ 'boy' ].ID,
Options = { 'mac' : mac },
Used = 0 ).Create()
Plus, the 'girl' icons are correctly displayed but the 'boy' icons are not displayed, a light bulb is displayed instead but as I sayed I can see them in the custom icons web page (see attached screenshot). The zip files are attached to this message.
Any ideas of I'm missing ?