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:
|
||||
```yaml
|
||||
service: script.sonos_say
|
||||
data:
|
||||
sonos_entity: media_player.kitchen
|
||||
volume: 0.3
|
||||
message: 'Your husband comming home!'
|
||||
delay: '00:00:05'
|
||||
automation:
|
||||
- alias: 'test'
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.mytest
|
||||
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