Create IoT Automation Using SmartThings New Rules API
summary
Creates automations by sending a JSON DSL to the SmartThings behaviors API that runs on SmartThings cloud today and will run on hub firmware for local execution on hub. Uses PAT or OAuth, queries /locations and /devices for device IDs, then posts a behavior with if/then/else, every/sleep and command actions (example: contact sensor open -> switch on, or setColor with color map). Engine is a Rust evaluator, nesting limit forthcoming (tentatively 10–50); demos run successfully.
AI-written summary · about
chapters (28)
- 0:00Introduction
- 0:37Team
- 1:17Responsibilities
- 1:50Agenda
- 2:08What is SmartThings
- 2:57Why use SmartThings
- 3:52Developer Entry Points
- 6:01Data Model
- 6:46Device Components
- 7:29Device Capabilities
- 8:55Automation Types
- 9:17Groovy Automations
- 11:29Groovy Benefits
- 13:20Rules API Overview
- 16:10Creating a Personal Access Token
- 23:57Why
- 26:30Rules API
- 27:01Rules Manual Execution
- 28:29Rules Grammar
- 34:16Creating Rules
- 35:43Schedule Based Automation
- 37:55IfThen Else
- 38:40Equal Condition
- 39:23Greater Than Condition
- 40:25Commands
- 42:31Location Action
- 43:54Whats Next
- 45:27Questions
related talks
49m40875 The dark Age of IoT
40mSmartThings 101: New to SmartThings
25mStreamlining IoT Systems: SmartThings Cloud-to-Cloud Device Integrations
22mGeneric and Extensible web of things manager using JSON schema & AI.
28mWhat's New in the SmartThings Platform?
23mAcquisitional Rule-based Engine for Discovering Internet-of-Things Devices
12mTrustless IoT: A Logic-Driven Architecture for IoT Hubs
26mLeverage the Marketplace for Your Smart Home
