
# User Settings resourceGroupName =smartthings If this is your first CosmosDB, set this to true. cosmosFreeTier: Azure has a Cosmos free tier, but you only get one.Run az account list-locations -query '.name' for an updated list. region: the location to host the resources.storageName: storage account name must be globally unique.To keep everything together, suggest creating a new one called smartthings or similar. resourceGroupName: the name of the resource group.Most of the defaults are fine, but please pay extra attention to these: Create the Azure ResourcesĮach of the following commands assume you’re using a bash-like shell, and the Azure CLI. To build this, let’s start by creating the Azure resources. An Azure Cosmos DB database, to permanently store the events and provide a platform for query and reporting later.
#Smartthings create smartapp code


Behind the scenes, a real-time platform maintains state and responds to events, generating real-time data about the state of your home. It renders each device as its digital twin, abstracting away the messiness of different vendors, protocols, hubs, clouds, apps - into one simple pane of glass. The platform that brings these devices together is Samsung SmartThings. They come from various vendors using myriad technologies, including a cool kit from Konnected that helped me give my old alarm system a smarthome upgrade. My home has over 70 smart devices, including switches, lights, contact sensors, motion sensors, thermostats and various controllers.
