diff --git a/docs/dev_101_services.md b/docs/dev_101_services.md index 0a0cc406..3446f55f 100644 --- a/docs/dev_101_services.md +++ b/docs/dev_101_services.md @@ -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".