Skip to content

Architecture Notes

Geko edited this page Dec 1, 2016 · 1 revision

Update Notifications

Considering that ST does not support any kind of server push technology out of the box, we have three options:

  • Polling. Probably needs to be configurable from 1 sec to 20-30 seconds to accommodate different use cases. Not ideal from the performance point of view, but necessary if other options are not available.
  • Use httpPost() API to push updates from the SmartApp to the external server. Can only push to the publicly accessible server (needs routable IP address).
  • Use sendHubCommand() API to push updates from the SmartApp to the server running on the local network. This option requires the SmartThings hub and the Open-Dash server to be on the same network.
Clone this wiki locally