Hello
I want to create a template of an RGBWW light. When I add this to configuration.yaml, I will get a light:
template:
- light:
- name: "WLED RGBWW"
unique_id: wled_rgbww_virtual
# supported_color_modes: "RGBWW"
# color_mode: "RGBWW"
state: >-
{% if is_state('input_number.wled_white_brightness', 'uit') %}
off
{% else %}
on
{% endif %}
turn_on:
service: input_number.wled_white_brightness
data:
option: flame
target:
entity_id: input_number.wled_white_brightness
turn_off:
service: input_number.wled_white_brightness
data:
option: uit
target:
entity_id: input_number.wled_white_brightness
In the next step, I uncommented the color_mode lines. This approach is not working. I get errors like this:
Invalid config for ‘template’ at configuration.yaml, line 209: ‘supported_color_modes’ is an invalid option for ‘template’, check: light->0->supported_color_modes Invalid config for ‘template’ at configuration.yaml, line 210: ‘color_mode’ is an invalid option for ‘template’, check: light->0->color_mode
I tried to figure out how to do the correct configuration. Light entity | Home Assistant Developer Docs seems to be wrong because that’s not how it works. I guess the templates are somthing different but I was not able to find documentation for that.
Can someone give me a hint how to crate an RGBWW light as template?
Background: I want to control my WS2805/LED RGBCCT strip. The WLED integration is not working well. Therefore, my idea was to use my own template and control WLED via http/json.
Thank you very much.