mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 21:36:52 +00:00
fix some syntax errors and made the example more complete (#1981)
This commit is contained in:
parent
8a16b0d413
commit
43eafc7a0c
@ -41,10 +41,16 @@ script:
|
|||||||
|
|
||||||
We call this now with:
|
We call this now with:
|
||||||
```yaml
|
```yaml
|
||||||
service: script.sonos_say
|
automation:
|
||||||
data:
|
- alias: 'test'
|
||||||
sonos_entity: media_player.kitchen
|
trigger:
|
||||||
volume: 0.3
|
- platform: state
|
||||||
message: 'Your husband comming home!'
|
entity_id: input_boolean.mytest
|
||||||
delay: '00:00:05'
|
action:
|
||||||
|
- service: script.sonos_say
|
||||||
|
data:
|
||||||
|
sonos_entity: media_player.office
|
||||||
|
volume: 0.5
|
||||||
|
message: 'Your husband comming home!'
|
||||||
|
delay: '00:00:05'
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user