mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-22 00:36:29 +00:00
Updated step as default Services view doesn't not allow defining Serv… (#930)
I was working through the documentation and found this confusing. I had to Google and reference [this page](https://www.home-assistant.io/docs/tools/dev-tools/) to understand how to complete this step.
This commit is contained in:
parent
3e17a760e0
commit
53b8a46271
@ -40,12 +40,11 @@ hello_service:
|
||||
|
||||
Open the frontend and in the sidebar, click the first icon in the developer tool section. This will open the Call Service developer tool. On the right, find your service and click on it. This will automatically fill in the correct values.
|
||||
|
||||
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 parameters. Add the following JSON as Service Data and press "Call Service again".
|
||||
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
|
||||
{
|
||||
"name": "Planet"
|
||||
}
|
||||
service: helloworld_service.hello
|
||||
data: { "name": "Planet" }
|
||||
```
|
||||
|
||||
The service will now overwrite the previous state with "Planet".
|
||||
|
Loading…
x
Reference in New Issue
Block a user