diff --git a/source/_components/script.markdown b/source/_components/script.markdown index b8ad2d156cc..4b0fa016dce 100644 --- a/source/_components/script.markdown +++ b/source/_components/script.markdown @@ -11,11 +11,9 @@ logo: home-assistant.png ha_category: Automation --- -The script component allows users to specify a sequence of actions to be executed by Home Assistant when turned on. The script component will create an entity for each script and allow them to be controlled via services. +The `script` component allows users to specify a sequence of actions to be executed by Home Assistant when turned on. The script component will create an entity for each script and allow them to be controlled via services. -The sequence of actions is specified using the [Home Assistant Script Syntax]. - -[Home Assistant Script Syntax]: /getting-started/scripts/ +The sequence of actions is specified using the [Home Assistant Script Syntax](/getting-started/scripts/). ```yaml # Example configuration.yaml entry @@ -33,7 +31,8 @@ The preferred way to separate words for better readability is to use underscore

```yaml -  # Turns on the bedroom lights and then the living room lights 1 minute later +script:  + # Turns on the bedroom lights and then the living room lights 1 minute later wakeup: alias: Wake Up sequence: @@ -99,6 +98,7 @@ automation: ``` Using the variables in the script requires the use of `data_template`: + ```yaml # Example configuration.yaml entry script: