mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 13:26:54 +00:00
Comment Line Fix (#3470)
* Comment Line Fix The commented line wasn't being displayed as a greyed out line, rather, it's red, and since the line truncates in the display, it looks like the word "later" is the first line in the script. * Add `script` and other minor changes
This commit is contained in:
parent
7932da4f3c
commit
110f61ffba
@ -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
|
||||
</p>
|
||||
|
||||
```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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user