mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
Update scripts-service-calls.markdown (#546)
Added info on how to use the Services Developer Tool
This commit is contained in:
parent
322b1e4469
commit
289e5457ae
@ -54,6 +54,17 @@ service_template: >
|
|||||||
entity_id: switch.ac
|
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 %}
|
### {% linkable_title Use templates to determine the attributes %}
|
||||||
|
|
||||||
Templates can also be used for the data that you pass to the service call.
|
Templates can also be used for the data that you pass to the service call.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user