[SOLVED]: Stuck device state image

Posted on
Sat Aug 09, 2014 2:00 am
berkinet offline
User avatar
Posts: 3298
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

[SOLVED]: Stuck device state image

I have a control page with a simple device state display. The problem I am having is the Icon tracks the device state in Safari on the Mac, but NOT in the Indigo-Touch app, where is is stuck in the On state.

Here is the Control Page editor with the specific device in question selected...
Screen Shot 2014-08-09 at 09.28.08 .png
Screen Shot 2014-08-09 at 09.28.08 .png (109.29 KiB) Viewed 2665 times

Here are the image files:
Screen Shot 2014-08-09 at 09.32.08 .png
Screen Shot 2014-08-09 at 09.32.08 .png (86.21 KiB) Viewed 2665 times

Here is the device:
Screen Shot 2014-08-09 at 09.51.48 .png
Screen Shot 2014-08-09 at 09.51.48 .png (154.72 KiB) Viewed 2665 times

Here is a browser window when the device is off:
Screen Shot 2014-08-09 at 09.32.41 .png
Screen Shot 2014-08-09 at 09.32.41 .png (66.02 KiB) Viewed 2665 times

And, finally, here is the Indigo-Touch display for the same, Off, state:
ios-ss.png
ios-ss.png (111.41 KiB) Viewed 2665 times


I have tried changing the image and get the same result. I have also quit and restarted the IoS app, and the i* devices, no joy. It looks like this device's state is cached somewhere. Other similar devices work as expected.

Posted on
Sat Aug 09, 2014 6:15 am
DaveL17 offline
User avatar
Posts: 6787
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Stuck device state image

Have you tried adding a lightbulb_large+false.png image?

I've found this naming convention to be the most stable (where there is an explicit image for each possible state):
image+.png
image+off.png
image+on.png
image+false.png
image+true.png

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

[My Plugins] - [My Forums]

Posted on
Sat Aug 09, 2014 6:29 am
berkinet offline
User avatar
Posts: 3298
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Stuck device state image

Thanks for the suggestion. Yes I did try it, but it made no difference. I moved the "+false" image to make the situation simpler to debug. Note, this works in a browser and for other similar devices. It is just this device in Indigo-touch that has the issue.

Posted on
Sat Aug 09, 2014 6:43 am
DaveL17 offline
User avatar
Posts: 6787
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Stuck device state image

I'm curious why the Pool Lights have a status of "false" while the House Ext. Lights and Yard Lights have a status of "off". They all three seem to be the same types of (Meta) devices.

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

[My Plugins] - [My Forums]

Posted on
Sat Aug 09, 2014 6:51 am
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Stuck device state image

Not sure if this post helps or not :?:

Posted on
Sat Aug 09, 2014 8:39 am
matt (support) offline
Site Admin
User avatar
Posts: 21429
Joined: Jan 27, 2003
Location: Texas

Re: Stuck device state image

If the device state has non-standard on/off states (in this case using false and true instead of off/on), then you need an image file for each state name AND you need a base image name that has ends in +.png. So you would need:

image+.png
image+false.png
image+true.png

It looks like you are missing the correct base file name. Be sure and reselect the new image base in the Control Page editor after you name the files correctly, then it will work.

Image

Posted on
Sun Aug 10, 2014 1:51 am
berkinet offline
User avatar
Posts: 3298
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: [SOLVED]: Stuck device state image

The Indigo-Touch app display is now working. Thanks to all who had various pieces of the answer. However, it is still a bit mysterious...

  1. @DaveL17"]DaveL17 noted the different state. Which I had seen and didn't really focus on. Turns out that device was built with an early version of the Meta-Data plugin before I changed it to have on/off states. I deleted and re-created the device and it then showed on and off states. But, it still didn't work. I also tried creating a Virtual-Device and that would not even change the state in the UI. See this separate post.
  2. Followed the theme suggested by @DaveL17, @autolog and specifically Matt and that fixed the problem.

However, it is still a mystery to me how similar another device has always worked with these two images alone:
Screen Shot 2014-08-10 at 09.18.10 .png
Screen Shot 2014-08-10 at 09.18.10 .png (11.43 KiB) Viewed 2563 times

Posted on
Sun Aug 10, 2014 6:11 am
DaveL17 offline
User avatar
Posts: 6787
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: [SOLVED]: Stuck device state image

berkinet wrote:
The Indigo-Touch app display is now working. Thanks to all who had various pieces of the answer. However, it is still a bit mysterious...
[snip]
I deleted and re-created the device and it then showed on and off states. But, it still didn't work.

Glad you've got it going.

I don't know whether this would have made a difference (or that you didn't try), but I find that restarting the server can sometimes clear up some of these situations.

Cheers,
Dave

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 4 guests