[ANSWERED]: Location of Images for Custom Devices

Posted on
Wed Dec 09, 2015 12:23 pm
DaveL17 offline
User avatar
Posts: 6786
Joined: Aug 20, 2013
Location: Chicago, IL, USA

[ANSWERED]: Location of Images for Custom Devices

I'm having trouble displaying indigo.kStateImageSel.Error for a plugin device. I could swear that I've been able to display this icon in other applications in the past. Can I browse these images or are they a part of the executable? I am able to display other images, but the Error icon eludes me. Just wondering whether this is something with my development environment.

Dave

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Wed Dec 09, 2015 3:30 pm
lindehoff offline
Posts: 80
Joined: Aug 08, 2015

Re: Location of Images for Custom Devices

I have the same problem.

Posted on
Tue Dec 22, 2015 7:28 pm
matt (support) offline
Site Admin
User avatar
Posts: 21429
Joined: Jan 27, 2003
Location: Texas

Re: Location of Images for Custom Devices

That makes three of us. For the life of me I cannot figure out exactly what indigo.kStateImageSel.Error does and I wrote the code that implements it. :-) It seems to function the same as selecting None. The other image selectors I understand, but I think that the Error one should have been culled out (or hidden until implemented).

Anyhow, if you are wanting to set a device into an error state so that its name displays in red, then see the setErrorStateOnServer method on the device base class. You might also want to read this forum thread.

Image

Posted on
Tue Dec 22, 2015 7:42 pm
DaveL17 offline
User avatar
Posts: 6786
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: [ANSWERED]: Location of Images for Custom Devices

Thanks Matt. What I had expected to have happen was this:

indigo.kStateImageSel.SensorOn [display a green dot]
indigo.kStateImageSel.SensorOff [display a gray dot]
indigo.kStateImageSel.Error [display a red dot]

Then, I could make the icon red when the custom device is in an error state.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 5 guests