From e57bfe05d5eb353b05dcdd5012b36e5c5e3d78bb Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 18 Feb 2021 16:43:34 +0100 Subject: [PATCH] Add selectors to Color Extractor service definitions (#46742) --- .../components/color_extractor/services.yaml | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/color_extractor/services.yaml b/homeassistant/components/color_extractor/services.yaml index 33055fd41b9..671a2a2ebb9 100644 --- a/homeassistant/components/color_extractor/services.yaml +++ b/homeassistant/components/color_extractor/services.yaml @@ -1,12 +1,22 @@ turn_on: - description: Set the light RGB to the predominant color found in the image provided by URL or file path. + description: + Set the light RGB to the predominant color found in the image provided by + URL or file path + target: fields: color_extract_url: - description: The URL of the image we want to extract RGB values from. Must be allowed in allowlist_external_urls. + name: URL + description: + The URL of the image we want to extract RGB values from. Must be allowed + in allowlist_external_urls. example: https://www.example.com/images/logo.png + selector: + text: color_extract_path: - description: The full system path to the image we want to extract RGB values from. Must be allowed in allowlist_external_dirs. + name: Path + description: + The full system path to the image we want to extract RGB values from. + Must be allowed in allowlist_external_dirs. example: /opt/images/logo.png - entity_id: - description: The entity we want to set our RGB color on. - example: "light.living_room_shelves" + selector: + text: