Hassette is a simple, modern, async-first Python framework for building Home Assistant automations.
Project description
Hassette
A simple, modern, async-first Python framework for building Home Assistant automations.
Documentation: https://hassette.readthedocs.io
✨ Why Hassette?
- Type Safe: Full type annotations with Pydantic models and comprehensive IDE support
- Async-First: Built for modern Python with async/await throughout
- Dependency Injection: Clean handler signatures with FastAPI style dependency injection
- Persistent Storage: Built-in disk cache for storing data across restarts, intelligent rate-limiting, and more
- Simple & Focused: Just Home Assistant automations - no complexity creep
- Web UI: Monitor and manage your automations from the browser
- Developer Experience: Clear error messages, proper logging, hot-reloading, and intuitive APIs
See the Getting Started guide for detailed instructions.
🖥️ Web UI
Hassette includes a web UI with four pages: Dashboard (KPI overview and app health), Apps (manage and inspect automations), Logs (real-time log streaming with filtering), and Sessions (restart history and telemetry).
The web UI is enabled by default at http://<host>:8126/ui/. See the Web UI documentation for details.
🤔 Is Hassette Right for You?
New to automation frameworks?
- Hassette vs. Home Assistant YAML - Decide if Hassette is right for your needs
Coming from AppDaemon?
- AppDaemon Comparison - See what's different and how to migrate
📖 Examples
Check out the examples/ directory for complete working examples:
Based on AppDaemon's examples:
- Battery monitoring - Monitor device battery levels
- Presence detection - Track who's home
- Sensor notifications - Alert on sensor changes
Real-world apps:
- Office Button App - Multi-function button handler
- Laundry Room Lights - Motion-based lighting
Configuration examples:
- Docker Compose Guide - Docker deployment setup
- HassetteConfig - Complete configuration reference
🛣️ Status & Roadmap
Hassette is under active development. We follow semantic versioning and recommend pinning a minor version (e.g., hassette~=0.x.0) while the API stabilizes.
Development is tracked in our GitHub project. Open an issue or PR if you'd like to contribute!
What's Next?
- 🔐 Enhanced type safety - Fully typed service calls and additional state models
- 🏗️ Entity classes - Rich entity objects with built-in methods (e.g.,
await light.turn_on()) - 🔄 Enhanced error handling - Better retry logic and error recovery
- 🧪 Testing improvements - More comprehensive test coverage and user app testing framework
🤝 Contributing
Contributions are welcome! Whether you're:
- 🐛 Reporting bugs or issues
- 💡 Suggesting features or improvements
- 📝 Improving documentation
- 🔧 Contributing code
See CONTRIBUTING.md for guidelines on getting started.
⭐ Star History
📄 License
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 hassette-0.24.0.tar.gz.
File metadata
- Download URL: hassette-0.24.0.tar.gz
- Upload date:
- Size: 254.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
603966919e1e3387d592179d8124d4679d5a63d93fcf35f30978f190216f0aae
|
|
| MD5 |
8f5d86dcb3f0a717dfbdd02bad1ca4b5
|
|
| BLAKE2b-256 |
23981f315f7dbb95fdcc17912f8b036b9b71437b0d2057f9a73a3c60cdcead72
|
Provenance
The following attestation bundles were made for hassette-0.24.0.tar.gz:
Publisher:
python_package.yml on NodeJSmith/hassette
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hassette-0.24.0.tar.gz -
Subject digest:
603966919e1e3387d592179d8124d4679d5a63d93fcf35f30978f190216f0aae - Sigstore transparency entry: 1231033272
- Sigstore integration time:
-
Permalink:
NodeJSmith/hassette@aab51e703d55bf5be972d5d2fc40401a07e7065f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/NodeJSmith
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python_package.yml@aab51e703d55bf5be972d5d2fc40401a07e7065f -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file hassette-0.24.0-py3-none-any.whl.
File metadata
- Download URL: hassette-0.24.0-py3-none-any.whl
- Upload date:
- Size: 330.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3596f49edbee424bb14e0f14e37c7800d4f2801e480fa8382e71cd05a27c73c
|
|
| MD5 |
09f4b52bb6b0752810b1e65f3f68ac33
|
|
| BLAKE2b-256 |
a9c8991cfca89a6319a89d5c123b1d0ed2624009c28ac929e7d34fce763110fd
|
Provenance
The following attestation bundles were made for hassette-0.24.0-py3-none-any.whl:
Publisher:
python_package.yml on NodeJSmith/hassette
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hassette-0.24.0-py3-none-any.whl -
Subject digest:
c3596f49edbee424bb14e0f14e37c7800d4f2801e480fa8382e71cd05a27c73c - Sigstore transparency entry: 1231033282
- Sigstore integration time:
-
Permalink:
NodeJSmith/hassette@aab51e703d55bf5be972d5d2fc40401a07e7065f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/NodeJSmith
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python_package.yml@aab51e703d55bf5be972d5d2fc40401a07e7065f -
Trigger Event:
workflow_dispatch
-
Statement type: