Scripts in Home Assistant
script
part of Home Assistant since 0.7
The Scripts integration allows users to automate tasks within Home Assistant by defining sequences of actions. It is commonly used to control smart home devices, trigger scenes, and manage daily routines through predefined triggers and conditions.
Typical uses
- Control smart home devices
- Trigger scenes and routines
- Respond to automation events
- Execute complex action sequences
Facts about this integration
- Compatible with Home Assistant
- yes, official integration
- Setup
- in configuration.yaml
- Kind
- Part of Home Assistant itself
- Quality scale
- Internal – Part of Home Assistant itself, not rated separately.
- Installations
- 561,792 (78.2 % of the installations that share statistics)
- Categories
- Automation
- Maintained by
- @home-assistant/core
Setup
- Nothing to install: this is part of Home Assistant and available as soon as it is running.
Blueprints that use this integration
- Automation Sensor Light – Switches lights based on sensor inputs, schedules, and user-defined switches. Requires binary sensors, lights, and input booleans.
- Automation NSPanel Configuration – Configures NSPanel devices with ESPhome, using weather and sensor data to trigger light notifications and controls.
- Automation Bathroom Humidity Exhaust Fan – Activates bathroom exhaust fan based on humidity sensor readings and user-defined switches.
- Automation Smart Light – Automates lights using sensors, switches, and scenes, with input booleans for manual control.
- Automation Ikea_bilresa_scroll_wheel – Controls lights, media players, and input selects via an Ikea Bilresa scroll wheel using Matter integration.
- Automation Sensor Light Add On – Controls lights and scenes via switches and sensors. Requires light, switch, and scene entities.
Known issues and fixes
3 open issues and 6 bug fixes in the last twelve months are recorded for Scripts in the Home Assistant issue tracker. If something does not work, update first: the most recent fix shipped with Home Assistant 2026.5.0.
Open
- open Renaming a script's entity ID does not work as expected.
- open Using the 'stop' action with 'error' set to true does not halt the parent script's execution.
- open A blocking call in a script's field schema causes unexpected behavior.
Fixed
- fixed in 2026.5.0 A race condition during script unloading caused inconsistent behavior.
Source: the issue tracker of Home Assistant, as of November 1, 2026. The sentences are written by a language model from the titles of the issues; the reports themselves are on GitHub.
Check a specific device for known problems in the product check →
Source of this entry: the official documentation of the integration
The description was written by a language model from the facts listed here, not taken from the documentation.
