mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-06-18 16:16:30 +00:00
YAML format for dev tool service call example (#1217)
This commit is contained in:
parent
5c7f71620a
commit
caf44c7187
@ -54,9 +54,10 @@ Open the frontend and in the sidebar, click the first icon in the developer tool
|
||||
|
||||
Pressing "Call Service" will now call your service without any parameters. This will cause your service to create a state with the default name 'World'. If you want to specify the name, you have to specify a parameter by providing it through Service Data. In YAML mode, add the following and press "Call Service again".
|
||||
|
||||
```json
|
||||
```yaml
|
||||
service: helloworld_service.hello
|
||||
data: { "name": "Planet" }
|
||||
data:
|
||||
name: Planet
|
||||
```
|
||||
|
||||
The service will now overwrite the previous state with "Planet".
|
||||
|
Loading…
x
Reference in New Issue
Block a user