Update scripts-service-calls.markdown (#546)

Added info on how to use the Services Developer Tool
This commit is contained in:
Galtwise 2016-06-09 22:39:44 -06:00 committed by Paulus Schoutsen
parent 322b1e4469
commit 289e5457ae

View File

@ -54,6 +54,17 @@ service_template: >
entity_id: switch.ac
```
### {% linkable_title Using the Services Developer Tool %}
You can use the Services Developer Tool to test data to pass in a service call.
For example, you may test turning on or off a 'group' (See [groups] for more info)
To turn a group on or off, pass the following info:
Domain: `homeassistant`
Service: `turn_on`
Service Data: `{ "entity_id": "group.kitchen" }`
### {% linkable_title Use templates to determine the attributes %}
Templates can also be used for the data that you pass to the service call.