Custom icons status update

WouterK
Posts: 167
Joined: Wed Aug 19, 2015 3:07 am

Custom icons status update

Post by WouterK »

Hi,

I am using v1.3.2 of Domopad and it works very good. Recently I added some custom icons to represent some devices; icon.png and icon+on.png
Adding these to a controlpage the status icons change when viewed in a browser (on a mac and also on the android device).
Opening the same controlpage in Domopad these icons do not change when the status is changed.
Do I have to change a setting to make this possible?

Thanks.
Regards,

Wouter
User avatar
RogueProeliator
Posts: 2538
Joined: Tue Nov 13, 2012 3:54 pm
Location: Baton Rouge, LA

Re: Custom icons status update

Post by RogueProeliator »

Do I have to change a setting to make this possible?
No, 99% of the time this situation is because you have your original image named incorrectly... It should not be named "icon.png" but rather "icon+.png". And this is what should be selected in the Control Page's dialog. The image name ending in a + is a trigger to Domotics Pad that it needs to load state-specific images.

Adam
WouterK
Posts: 167
Joined: Wed Aug 19, 2015 3:07 am

Re: Custom icons status update

Post by WouterK »

Hi,

Thanks for the tip! The icons now also change in Domotics Pad.
Is this specific for Domotics Pad?

Regards,

Wouter
User avatar
DaveL17
Posts: 7323
Joined: Tue Aug 20, 2013 11:02 am
Location: Chicago, IL, USA
Contact:

Re: Custom icons status update

Post by DaveL17 »

WouterK wrote:Hi,

Thanks for the tip! The icons now also change in Domotics Pad.
Is this specific for Domotics Pad?

Regards,

Wouter
It's not specific to Domotics Pad.

For custom values, there generally needs to be an image+.png file in addition to the others (image+1.png, image+2.png). It seems that the only exception to this rule is binary states (image.png, image+on.png, image+true.png) where the image.png file (the one without the plus sign) is presumed to be off (or false.)

Custom Images on Control Pages

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

My Plugins and Scripts
WouterK
Posts: 167
Joined: Wed Aug 19, 2015 3:07 am

Re: Custom icons status update

Post by WouterK »

My first attempts worked by accident :D

Thanks for the explanation. Now that I know how it works I can expand my control pages with changing status icons.

Regards Wouter
Post Reply

Return to “DomoPad Android Client”