Having issues installing a smartapp


(Gary D) #1

Is ST having issues again around this time? (3pm ET)

I’ve installed the same smartapp (custom) about 20 times and it never seems to show up in the mobile app, in the ide (in the device page, “in use by smartapps”), etc. However, I do see my “updated()” function running from the smartapp.


(Greg) #2

Yeah, I’ve had this same issue and reported it to support. but the auto response said 36 hour response time. I am getting alerts from the ghost smart app I installed though. But it isn’t listed on the mobile app or on the ide as being installed.


(Gary D) #3

okay, now I’m seeing a copy of the smartapp being installed, but with NOTHING configured in it. I guess ST is having a Bad Day. It must be Monday.

Oh, and I don’t bother with support@ anymore. I can summarize the responses I’ve seen from them here:

  • We don’t support anything involving anything involving custom device types or smartapps. Use the forum.
  • (24+ hours after I’ve submitted the problem): Everything seems to be working now.
  • Reboot the hub?

(Greg) #4

good news for me it is a ST app I installed. Just checked again. Still not showing in app or ide. and I did reboot :wink:


(Gary D) #5

More info:

I updated the smartApp code to display some debug info:

def installed() 
{
	initialize()
    log.debug "installed!"
}

def updated() 
{
	unsubscribe()
	initialize()
    log.debug "updated!"
}

def initialize() 
{
    log.debug "init A"
	subscribe(windows, "contact.open", openHandler)
    log.debug "init B"
	if (nightOnly)
	{
		// force updating the sunrise/sunset data
		retrieveSunData(true)
	}
    log.debug "init C"
    
}

I saved, published for myself, and went to add it from the mobile app. Here’s what I got to see in the log window:

a66bbadc-d879-418e-8367-54e8e6fe27c1 3:31:55 PM: trace Deleting all scheduled jobs for InstalledSmartApp: a66bbadc-d879-418e-8367-54e8e6fe27c1
That’s it. None of my debugging log entries showed up.

Being that support@ won’t support this, who can I whine to, @April?


#6

Try installing one of standard smart apps you don’t already have through the mobile app and see if it has the same problem. If so, you can report that to support.


(April Wong) #7

On it. :slight_smile: Stand by.

Cheers,


(Gary D) #8

Odd - when I install it (same options selected) from the IDE, everything appears to work. Uninstall and try again from the mobile app, and I get the same failure (and symptoms) mentioned above.


(April Wong) #9

Hey @garyd9,
Here you go, this is the message I got from our engineer:

Change:

dynamicPage(name: “prefs”, uninstall: true)

to

dynamicPage(name: “prefs”, uninstall: true, install: true)

The documentation says that that option is not necessary for single page preferences, but I believe since he is creating a separate function for his page it is required for some reason. I will follow up with the developers and Jim to see if we need to change the documentation.


(Gary D) #10

Well, THAT’s interesting.

This (and another unpublished smartApp) was the first time I was using “dynamicPage()” for single page settings. (I needed to do it that way to pull the HH phrases.) I did notice that I had to add an ‘uninstall’ tag (contrary to the docs), but didn’t think to add an “install” tag because the “DONE” button was there.

Well, thank you @April and thank you Anonymous Engineer.

Take care
Gary


(April Wong) #11

Shuan is the engineer in question. However, I wonder if we can collectively call them something like SmartDevs (still trying to coin this term!) or, AnonymousEngineers. They should have a cool video and wear horse masks . We’ll sync Mylo bands with ST, and do a syncronized Dance---- Okay. I’ll show myself out.


Next Developer Call will be on 3/11/2015
(Gary D) #12

You are an unusual person. Please don’t ask the ST engineers to do anything like that. If they are anything like me, they’d resign first.


(April Wong) #13

No, sadly, no one will follow.

I still hope that someone will integrate the Mylo bands with ST, and do some kind of cool video demonstration.


#14

If they are anything like me, they’d already be working on their choreography. :horse::panda_face::horse: :notes:


(Darryl) #15

Yes! Horse Masks!

I now expect this on a Developer Discussion!


(Gary D) #16

Being she came up with the idea, I think @April should set the example and wear a “horse mask” for the duration of the dev conference call tomorrow evening.


(April Wong) #17

Gary, I suppose you’re right. Engineers would rather leave than wear a mask and dance. as I would rather give you that darn t-shirt you pester about, than to wear that on a recorded con-call. you win. I wave the white flag.


(Gary D) #18

Great. When can I expect the t-shirt? :wink:


(April Wong) #19

Jokes on you. I’m sending you the winning T-shirt from the developers contest instead. :smiley:


#20

Hey, plenty of engineers like dancing!

Tagline: Engineers are amazing!. :space_invader: