Add selectors to Color Extractor service definitions (#46742)

This commit is contained in:
Franck Nijhof 2021-02-18 16:43:34 +01:00 committed by GitHub
parent cd6a83f009
commit e57bfe05d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,22 @@
turn_on: 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: fields:
color_extract_url: 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 example: https://www.example.com/images/logo.png
selector:
text:
color_extract_path: 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 example: /opt/images/logo.png
entity_id: selector:
description: The entity we want to set our RGB color on. text:
example: "light.living_room_shelves"