From afc44b25f3e7b206d25c5e7c2e745b5fc635fa84 Mon Sep 17 00:00:00 2001 From: Codestian <31157555+Codestian@users.noreply.github.com> Date: Tue, 29 Jun 2021 00:15:34 +0800 Subject: [PATCH] Update websocket.md (#958) Added missing optional "target" key in Calling a service section and changed "service_data" key with better examples. --- docs/api/websocket.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/api/websocket.md b/docs/api/websocket.md index ee3a320c..c2eef17c 100644 --- a/docs/api/websocket.md +++ b/docs/api/websocket.md @@ -227,6 +227,11 @@ This will call a service in Home Assistant. Right now there is no return value. "service": "turn_on", // Optional "service_data": { + "color_name": "beige", + "brightness": "101" + } + // Optional + "target": { "entity_id": "light.kitchen" } }