mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 01:06:52 +00:00
Clarify target example in script service call documentation (#19037)
This commit is contained in:
parent
ec30fba22a
commit
e0011641cf
@ -30,12 +30,13 @@ This is done with the `target` key.
|
|||||||
A `target` is a map that contains at least one of the following: `area_id`, `device_id`, `entity_id`.
|
A `target` is a map that contains at least one of the following: `area_id`, `device_id`, `entity_id`.
|
||||||
Each of these can be a list.
|
Each of these can be a list.
|
||||||
|
|
||||||
When the service is called, the areas and devices will be resolved to entities.
|
The following example uses a single service call to turn on the lights in the
|
||||||
|
living room area, 2 additional light devices and 2 additional light entities:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
service: homeassistant.turn_on
|
service: light.turn_on
|
||||||
target:
|
target:
|
||||||
area_id: livingroom
|
area_id: living_room
|
||||||
device_id:
|
device_id:
|
||||||
- ff22a1889a6149c5ab6327a8236ae704
|
- ff22a1889a6149c5ab6327a8236ae704
|
||||||
- 52c050ca1a744e238ad94d170651f96b
|
- 52c050ca1a744e238ad94d170651f96b
|
||||||
|
Loading…
x
Reference in New Issue
Block a user