so I would like to do
- Code: Select all
icon = list[n]
dev.updateStateImageOnServer(indigo.kStateImageSel.icon)
otherwise I need to repeat the whole
if icon =="xx" and dev.updateStateImageOnServer(indigo.kStateImageSel.xx)
for each xx = SensorOn, SensorOff, ...
Karl