![]() The SDKs are a set of libraries and wrappers around the SmartThings API designed specifically for SmartApp creation. There are two SDKs available to help create your SmartApp. Create Your SmartApp With the SmartApp SDK # For more complete instructions on how to work with cloud connected devices please visit the Devices documentation section. It is possible to create and control cloud connected devices with a SmartApp. Cloud Connected Devices with SmartApp Connectors # We have created a tutorial on building a SmartApp with Context Store here: If your SmartApp needs to allow external communication or authentication with a third party, you will need a context store. Using the SmartThings app on your phone, navigate to the 'Marketplace'. Click 'Create', and then 'Publish' (For Me). Select the 'From Code' tab and paste in the contents of the relevant groovy file. ![]() We have created an example tutorial on building a simple SmartApp that sets the color of a light based on the weather in a given zip code. Within the SmartThings IDE, click 'My SmartApps', then '+ New SmartApp'. If you need to create something more complex than a rule, but do not need to hold outside authentication information or other data, you will use a simple SmartApp. Choosing to start with a Simple SmartApp will not preclude you from enabling more advanced features later. Which one you choose will depend entirely on your specific application. There are typically three types of SmartApps you can create. If using Lambda, permission to execute your Lambda (url) function must be granted to SmartThings.If using a webhook, an app server up and publicly accepting lifecycle events (needs url) from SmartThings via HTTPS.Visit Choosing a Hosting Solution for more details. Pick a solution to host your SmartApp.Developing Your SmartThings Find Device.Get Started With Mobile Connected Devices.LAN Edge Device Driver Development Guide.Enroll in a Shared Channel and Install Drivers.Get Started with Cloud Connected Devices.Get Started with Direct Connected Devices.Device Presentations and Configurations.You can debug by viewing the live logs of your SmartThings location - click on Live Logging in the menu of the SmartThings IDE: Viewing Live Logs in SmartThings. Save the settings and make sure that the app is enabled, you’ll see data in your InfluxDB immediately if everything is working correctly. Select all devices which you would like to log: Selecting Devices to Log. Now the SmartApp is enabled, you should see it in your SmartThings mobile application under SmartApps: New InfluxDB Logger SmartApp.Ĭlick on the app to open the settings: Configuring InfluxDB Settings. Click the Publish -> For Me button to make the app available.Hit Create - you should see a green “Created SmartApp” banner.Copy and Paste the groovy code from influxdb-logger.Click the blue + New SmartApp button in the top right of the screen.This is a relatively straighforward process but is daunting the first time you do it. We need to install a SmartApp to SmartThings to collect the sensor data. This post assumes that you have an InfluxDB and Grafana server running already, take a look at my post on getting a Raspberry Pi configured if you need to get set up first. One of my main frustrations with the service is the lack of visibility into the huge amounts of data that it collects, so I decided to store that data myself! This way I can query it and visualise it in Grafana, set alerts and get insight into how my home is performing. Samsung SmartThings is a multi-protocol smart home hub produced by Samsung, it supports Z-Wave, Zigbee and Bluetooth and is surprisingly configurable. Now that you’ve got your Pi set up with Influx & Grafana, you’re collecting some system stats, and measuring network performance, it’s time to collect data from SmartThings!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |