All posts by : Tim

  1. Home
  2. /
  3. Author Archive

Asynchronous HTTP API – Beta Launch

Posted in : Developer News, New Features on by : Tim

SmartThings Developers – we’re excited to announce a beta version of APIs that allow developers to make HTTP requests to third party services asynchronously. These APIs work similarly to existing APIs like httpGet(), httpPut(), etc., but with one big difference – they are executed asynchronously. Here’s an example of making an asynchronous GET request: include ‘asynchttp_v1’ def initialize() { def params = [ uri: “”, path: “/search/code”, query: [q:‘httpGet+repo:SmartThingsCommunity/SmartThingsPublic’] ] // make request, passing the name of the method to call // with the response asynchttp_v1.get(“responseHandler”, params) } // response handler is called when the request completes // (in another…


Release Notes – Platform – 8/18/16

Posted in : Platform Release Notes, Release Notes on by : Tim

Fixed an issue where apps that were scheduled in the cloud then moved to local execution and the cloud schedule would remain. SmartApps will now only be scheduled in either AppEngine or Ticker. Improve SmartApp performance by caching preferences and pages. Added option to force delete device that are references in any SmartApps.


Release Notes – Hub Firmware – 15.3

Posted in : Firmware Release Notes, Release Notes on by : Tim

On Monday 15 August, between 4:00 pm BST and 7:00 pm BST, we will automatically update your SmartThings Hub to the latest firmware (version 0.15.3). The update is expected to take less than 10 minutes, during which time your SmartThings Hub will temporarily go offline and events scheduled for this time will not be processed. The firmware update adds general improvements to the Hub firmware and ZigBee communications. The update also fixes isolated issues with memory corruption, LAN devices, and network connectivity. Firmware version 15.3 changelog: Fixed a memory leak that was causing some user’s hubs to reboot Fixed a…


Release Notes – Platform – 08/09/16

Posted in : Platform Release Notes, Release Notes on by : Tim

General   Fixed issue for legacy users when inviting members to their account Fixed issue where shared account users could delete loccation. Now only the location owner can delete their locations.   Developer   Add line number to try/catch block error messages. Fix issue with executing apps through the IDE and undeclaredThrowableException Fixed issue

Best practice on blackboard

Developer Discussion – SmartThings Developer Best Practices

Posted in : Developer Discussions on by : Tim

Here’s a look back at the developer Discussion from July 13, 2016. We talk about SmartThings development best practices and how to make your SmartThings development as successful as possible. Here is a preview of some of the practices we talk about. Code should be readable Code is executed by machines, but read by humans. Readability can be subjective, but there are some general guidelines that should be followed:   Don’t repeat yourself Follow the DRY principle (don’t repeat yourself). Don’t copy/paste code blocks – pull common code out into a shared utility method.   Methods should serve a single…

Screen Shot 2016-08-05 at 1.26.45 PM

New Developer Feature – Hide Preference When Empty

Posted in : New Features on by : Tim

We are excited to announce the new hideWhenEmpty preferences configuration option. This feature will be useful to all developers wanting to provide a more succinct and friendly installation flow for your SmartApps. Prior to today if you wanted to hide an input field you would have needed to clutter up your code with if statements. This was hard to read and added another layer of complexity to your code. This is where hideWhenEmpty comes in. hideWhenEmpty will allow you to hide device inputs from the UI that could be empty. Making it easier for your users to understand how to…