From e0011641cf3a565207cdbc21b1dc2080b6f31ba6 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 24 Aug 2021 12:46:51 +0200 Subject: [PATCH] Clarify target example in script service call documentation (#19037) --- source/_docs/scripts/service-calls.markdown | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/_docs/scripts/service-calls.markdown b/source/_docs/scripts/service-calls.markdown index 896126b7aa4..bb65a50c8f7 100644 --- a/source/_docs/scripts/service-calls.markdown +++ b/source/_docs/scripts/service-calls.markdown @@ -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`. 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 -service: homeassistant.turn_on +service: light.turn_on target: - area_id: livingroom + area_id: living_room device_id: - ff22a1889a6149c5ab6327a8236ae704 - 52c050ca1a744e238ad94d170651f96b