Hi everyone,
I’m working on building a light template that combines xled, xled_plus and Node Red to enhance the abilities of the built in twinkly integration for our tree.
I have color and brightness working , however my effect list is missing when I turn the lights on. I’m using an input select to define the effects and looking to call a shell script to enable the effect. My YAML validates as correct, and I don’t see any errors in the logs (at least none that look to be related). I’m hoping someone can share some advise to help troubleshoot. Below is the YAML for my light template
light:
- platform: template
lights:
christmas_tree_dummy:
unique_id: xledtree2021
friendly_name: "Christmas Tree"
value_template: "{{ states('binary_sensor.xled_tree')}}"
level_template: "{{ state_attr('binary_sensor.xled_tree', 'brightness')| int}}"
color_template: "({{ state_attr('binary_sensor.xled_tree', 'hue')}}, '{{ ((state_attr('binary_sensor.xled_tree', 'sa
turation') | float / 255) * 100) | round}}')"
effect_list_template: "{{ state_attr('input_select.treeeffect', 'options') }}"
effect_template: "{{ states('input_select.treeeffect')}}"
turn_on:
- service: input_boolean.turn_on
entity_id: input_boolean.xled_switch
turn_off:
- service: input_boolean.turn_off
entity_id: input_boolean.xled_switch
set_level:
service: script.TreeBrightness
data:
brightness: "{{ brightness }}"
set_color:
- service: input_number.set_value
data:
value: "{{ h }}"
entity_id: input_number.xledcolorhue
- service: input_number.set_value
data:
value: "{{ s }}"
entity_id: input_number.xledcolorsaturation
set_effect:
- service: shell_command.set_tree_movie
data_template:
movie: "{{effect}}"