custom-components/pyscript
Pyscript adds rich Python scripting to HASS observed · 2026-09-01
Health v2 · maintenance only
95/100
- Activity 100
- Release rhythm 85
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 57.5
- age_days: 2225
- days_rel: 22
- days_push: 2
- n_releases_24m: 7
Adoption not part of the score
1181 stars · 67 forks observed · 2026-09-01
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Pyscript is a Home Assistant custom integration (installable via HACS) that lets you write automations and logic as Python functions, with state variables bound to Python variables and services callable as functions. It also ships a Jupyter kernel for interactively developing and testing pyscript code against a live Home Assistant instance.
Use cases
- write home assistant automations in python
- replace yaml automations with python scripts
- trigger functions on state changes or events in home assistant
- test home assistant logic interactively in jupyter
- call home assistant services from python code
- build complex smart home logic with python
When to choose
- you want to write Home Assistant automations in Python instead of YAML
- you need rich logic like loops, conditionals, and long-running tasks in automations
- you want to develop and debug automations interactively with Jupyter
- you prefer Python variable bindings to state variables and service calls
When to avoid
- you only need simple automations that YAML or the UI editor already handle well
- you don't use Home Assistant
- you want a fully supported, core-integration solution rather than a community custom component
- you need automations editable by non-programmers through the UI
Facets
plugin · maturity active
workflow-automation interpreter sdk iot developer-tools python self-hosted iot home-assistant hacs custom-component jupyter-kernel python-scripting smart-home automation
1 source
- readme: https://github.com/custom-components/pyscript · fetched 2026-09-01 · 22bec9190d45
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| custom-components/pyscript | main | 95 |
For agents
markdown · JSON · MCP: product_card(name="custom-components/pyscript")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem