Framework to build a webhook-based SmartThings SmartApp
Project description
SmartApp SDK
Note: As of January 2025, I have migrated my home automation infrastructure from SmartThings to Home Assistant, so I no longer actively use this software. I will continue to maintain the library, keeping dependencies up-to-date and supporting new Python versions, etc. Time permitting, I will also continue to accept GitHub issues for bug fixes and enhancement requests. If you submit an issue, please keep in mind that I no longer have a SmartThings environment to test with, so I will expect you to coordinate with me on testing before I release any changes.
smartapp-sdk is a Python library to build a webhook-based SmartApp for the SmartThings platform.
The SDK is intended to be easy to use no matter how you choose to structure your code, whether that's a traditional Python webapp (such as FastAPI on Uvicorn) or a serverless application (such as AWS Lambda).
The SDK handles all the mechanics of the SmartThings webhook lifecycle interface on your behalf. You just implement a single endpoint to accept the SmartApp webhook requests, and a single callback class where you define specialized behavior for the webhook events. A clean attrs object interface is exposed for use by your callback. The attrs interface has been designed to match the JSON interface documented by SmartThings. If you have questions about the shape of the data or the way the lifecyle interface works, the SmartThings documentation is your best source of information.
SDK documentation for this library is found at smartapp-sdk.readthedocs.io. Look there for installation instructions, the class model documentation, and example code.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file smartapp_sdk-0.9.1.tar.gz.
File metadata
- Download URL: smartapp_sdk-0.9.1.tar.gz
- Upload date:
- Size: 55.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50ff85130cfd1829ca6c312ab182c059ed3105bd59ba6b9d04be5856b85aa056
|
|
| MD5 |
d658e3d4941df432c3fb042379ebf368
|
|
| BLAKE2b-256 |
0f7a35013f170a30b6930363b94c5b4a22cc463bfe0c80c699c3c788b94737de
|
File details
Details for the file smartapp_sdk-0.9.1-py3-none-any.whl.
File metadata
- Download URL: smartapp_sdk-0.9.1-py3-none-any.whl
- Upload date:
- Size: 23.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0593c916654ef325613bc895f29d30b80039ad732d91e5cf4fef8411eb9c899
|
|
| MD5 |
65bfb01f8e93e4b590ca05721c19eff6
|
|
| BLAKE2b-256 |
24282bb84ff0d8252800bc4b04a382decc863777da725cd7dcc25f5736c15dd7
|