Announcement: New "Update" feature in the IDE

Hey all!

Just wanted to stop in and let ya know about a new feature we rolled out.

In the IDE you may, or may not, have seen a new link next to all the SmartApps in the IDE. You will now see a “Update” link next to all SmartApps. This is a nifty little feature that allows you to run the “Updated” method in a SmartApp. This essentially will allow the smartapp to reschedule itself and re-make subscriptions.

You can get to this list by:

  • logging into the IDE
  • clicking on My Locations
  • select the location you want to work with
  • click “List SmartApps”
9 Likes

Now that is a nifty little work around for the screwed up scheduler. But in all honesty, it does make fixing them easier.

***not trying to show animosity… Just frustrated…

Any update on the scheduler fix?
Any idea how @bravenel can get RM to puts this link for us? Lol

But still, thanks.

4 Likes

it happens automagically. Every app that has a updated method (they all should) will have this link.

This was our goal in the meantime. :slightly_smiling:

1 Like

For those of us who may be unfamiliar. What does the “updated” method do? Is this something everyone with smart apps should click?

@slagle don’t get me wrong… I’m a huge supporter of ST…and will continue to be.

Except… SmartTiles’s “updated()” method includes a call to “unshcedule()” which frequently results in a fatal error…

http://thingsthataresmart.wiki/index.php?title=Bug:_Schedule_Methods_Cause_Fatal_Java_Error

So now I’m extra worried. :worried:

2 Likes

Stockholm Syndrome? :stuck_out_tongue_winking_eye:

7 Likes

Trying to track this down. In my testing it seems it may only happen once every blue moon.

2 Likes

I agree… Seems to be very rare this week. Thanks for hunting this bug :bug:!

1 Like

For anyone wondering, doing this for a Rule causes the Rule to be evaluated, and the actions for true/false taken accordingly. For a Trigger, no actions are taken.

For both Rules and Triggers, scheduled events are rescheduled.

Doing this for Rule Machine has no effect.

4 Likes

Where does this show up in the IDE? I don’t see it, also in a little confused on this usage of this can I do this to fix scheduling issues on the Smart Apps I’m using that are just standard or do I have to only use this on my copies of my Smart Apps?

If a couple common scenarios where it makes sense to use this would be helpful.

In the IDE, go to My Locations / List SmartApps.

You can do this on any SmartApp listed per the above.

Hmmm, maybe the term “update” may be confused with automagically updating the smartapps, or thinking that there’s an update available. Perhaps a term like “reload” may be better suited?

2 Likes

…or… “make your things work again”… or… whatever… ugh.
I was kind of hoping that in a home automation system I wouldn’t have to do this…

but hey! I’m just being excessively negative tonight!

It’s not automation, it’s manual control and adjustment for something that wants to be an automation, but falls short.

1 Like

It’s automatic! As soon as that button is pressed it does stuff!

1 Like

I clicked all the Updates for all my SmartApps. Worried I will find everything broken in 5 minutes.

Hoping my Energy Alerts will finally work.

This does not seem to renew subscriptions. I have two hubs, when I look at weather station (built-in smart app under hello home), one has subscriptions (location change) and the other does not. I have logged this with support.

I have seen with smartapps in addition to the unschedule() issues folks mention, unsubscribe() seems pretty hit or miss…more miss lately.