This is the updated Smartapp instructions for the 2023 SmartThings platform changes
What is the Spruce Sensor Smartapp
This Smartapp sends data from Spruce sensors that are connected to a SmartThings hub to the Spruce cloud for use with the Spruce Gen2 Controller and app.
The existing Spruce Connect Smartapp currently provides this service as well as creating a Spruce controller device in SmartThings. It will be discontinued as part of the upcoming SmartThings platform change.
The previous Smartapp and Devices used Groovy code and were utilized through the SmartThings Groovy IDE. These will be removed as outlined in the SmartThings announcements referenced in the next section.
The new Smartapp is hosted by Spruce, but can still be added to your SmartThings account as outlined in the directions below.
Update to the SmartThings platform
This Smartapp will replace the previous Spruce Connector because SmartThings will no longer support the Groovy device handlers or Smartapps as referenced here: The end of groovy has arrived
On September 30, 2022 SmartThings will start terminating the use of legacy technology and transition to new technology they call SmartThings Edge, Schema, and more. They have additional details in the FAQ.
SmartThings Platform Transition FAQ
This Smartapp is required after SmartThings discontinues the previous Groovy device handlers and Smartapps. Until that time, the previous Spruce Connect Smartapp should be used because this Smartapp is only compatible with the new device edge drivers.
How to add the SmartApp to your account
- Request your Spruce access token before proceeding. Spruce Gen2 Controller and account is required.
- Login to the new SmartThings developer account using your existing login credentials
- Create a New Project
- Select Automation for the SmartThings App
- Enter a name for the project
Spruce Sensor Connect
and Create Project - Select Register App
- Select WebHook Endpoint
- Enter the Target URL
https://api.spruceirrigation.com/v2/sensor_smartapp
- Go to the Next page
- Enter the following information
- App Display Name:
Spruce Sensor Connect
- Description:
Send Sensor Data to Spruce
- Check the box for: r:devices:*
- App Display Name:
- Go to the Next page
- Custom Parameters
- Name:
accessToken
Value: *your Spruce access token*
- Name:
- Save
- Go to project overview, you do not need the Client ID and Secret
- Click the Verify App Registration
- Deploy to Test
Enable Developer Mode in the SmartThings App
Follow these steps to enable developer mode in your SmartThings app.
- In the SmartThings menu, go to the Menu button in the lower right corner.
- Press the Gear in the upper right corner
- Scroll down to About SmartThings and long-press it
- The developer options will show up just below the About SmartThings
- Turn on the Developer mode
- Close and re-open the app
Use the App
The new Smartapp will not show up in the SmartThings app until the developer mode is enabled. To use the new SmartApp:
- Go to Automations
- At the top of the screen select the Compass icon
- Scroll down to find the app Spruce Sensor Connect
- Select the Sensors that will send data to the Spruce cloud
- Press Done and then Allow
- The sensors will now be added to the Spruce account and send Temperature and Soil data to the Spruce app.