Skip to main content

Hassette is a simple, modern, async-first Python framework for building Home Assistant automations.

Project description

Hassette

PyPI version Python 3.11+ License: MIT Documentation Status codecov

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).

Hassette Web UI Dashboard

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?

Coming from AppDaemon?

📖 Examples

Check out the examples/ directory for complete working examples:

Based on AppDaemon's examples:

Real-world apps:

Configuration examples:

🛣️ 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

Star History Chart

📄 License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hassette-0.26.0.tar.gz (356.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hassette-0.26.0-py3-none-any.whl (447.9 kB view details)

Uploaded Python 3

File details

Details for the file hassette-0.26.0.tar.gz.

File metadata

  • Download URL: hassette-0.26.0.tar.gz
  • Upload date:
  • Size: 356.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hassette-0.26.0.tar.gz
Algorithm Hash digest
SHA256 283b1a4431b1cfd702ac277f0d5fef65473196eadbbf00ea35f40925428cab7a
MD5 bb1dc9dceb21ce60d8fe9e54bba2e8ae
BLAKE2b-256 453fe54f8e626fce82c9bfead25a861c37e1f99f9231ac2c9d745f19f674c75d

See more details on using hashes here.

Provenance

The following attestation bundles were made for hassette-0.26.0.tar.gz:

Publisher: python_package.yml on NodeJSmith/hassette

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hassette-0.26.0-py3-none-any.whl.

File metadata

  • Download URL: hassette-0.26.0-py3-none-any.whl
  • Upload date:
  • Size: 447.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hassette-0.26.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a63b1c975e60f737baa5800b6f6e879c1f6b115c7c6a2c8bef88eb2f5b27da2c
MD5 4c2d7fa90a1b180150db3968a094c81f
BLAKE2b-256 ac9b1dfab9ac846b33f904d027ad23d3547ebf7e8566e80e986a2c9d7c8f3d8b

See more details on using hashes here.

Provenance

The following attestation bundles were made for hassette-0.26.0-py3-none-any.whl:

Publisher: python_package.yml on NodeJSmith/hassette

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page