From b2ed9abae981043ecd25c53f3a7b3d5b3d0eb2c8 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 29 Oct 2015 13:39:24 +0100 Subject: [PATCH] Add some more details --- source/_components/switch.markdown | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/source/_components/switch.markdown b/source/_components/switch.markdown index 2de6b1c796e..c42f4760403 100644 --- a/source/_components/switch.markdown +++ b/source/_components/switch.markdown @@ -14,7 +14,14 @@ Keeps track which switches are in your environment, their state and allows you t * Maintains a state per switch and a combined state `all_switches`. * Registers services `switch/turn_on` and `switch/turn_off` to control switches. -Optional service data: +### {% linkable_title Use the services %} - - `entity_id` - only act on specific switch. Else targets all. +Go the the **Developer Tools**, then to **Call Service** in the frontend, and choose `switch/turn_on` or `switch/turn_off` from the list of available services (**Available services:** on the left). Enter something like the sample below into the **Service Data** field and hit **CALL SERVICE**. +```json +{"entity_id":"livingroom_pin2"} +``` + +| Service data attribute | Optional | Description | +| ---------------------- | -------- | ----------- | +| `entity_id` | yes | Only act on specific switch. Else targets all.