1
mirror of https://github.com/home-assistant/core synced 2024-08-02 23:40:32 +02:00
ha-core/homeassistant/components/color_extractor/services.yaml

26 lines
708 B
YAML

turn_on:
name: Turn on
description:
Set the light RGB to the predominant color found in the image provided by
URL or file path.
target:
entity:
domain: light
fields:
color_extract_url:
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:
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
selector:
text: