mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Added note regarding dashes in script names (#1518)
This commit is contained in:
parent
30b3a55344
commit
87e7c16ef2
@ -25,9 +25,15 @@ script:
|
|||||||
# This is Home Assistant Script Syntax
|
# This is Home Assistant Script Syntax
|
||||||
- service: notify.notify
|
- service: notify.notify
|
||||||
data_template:
|
data_template:
|
||||||
message: Current temperature is {% raw %}{{ states.sensor.temperature.state }}{% endraw %}
|
message: Current temperature is {% raw %}{{ states.sensor.temperature.state }}{% endraw %}
|
||||||
|
```
|
||||||
|
<p class='note'>
|
||||||
|
Script names (e.g. `message_temperature` in the example above) are not allowed to contain dash (minus) characters, i.e. `-`.
|
||||||
|
The preferred way to separate words for better readability is to use underscore (`_`) characters.
|
||||||
|
</p>
|
||||||
|
|
||||||
# Turns on the bedroom lights and then the living room lights 1 minute later
|
```yaml
|
||||||
|
# Turns on the bedroom lights and then the living room lights 1 minute later
|
||||||
wakeup:
|
wakeup:
|
||||||
alias: Wake Up
|
alias: Wake Up
|
||||||
sequence:
|
sequence:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user