I have the following script:
alias: Inovelli - Clear LEDs
variables:
switch: 0e8b546b7257587a218f63ad4547d13a
sequence:
- type: issue_all_led_effect
domain: zha
device_id: "{{switch}}"
effect_type: Clear
color: 0
level: 100
duration: 255
- type: issue_individual_led_effect
domain: zha
device_id: "{{switch}}"
led_number: 0
effect_type: Clear
color: 0
level: 100
duration: 255
- type: issue_individual_led_effect
domain: zha
device_id: "{{switch}}"
led_number: 1
effect_type: Clear
color: 0
level: 100
duration: 255
- type: issue_individual_led_effect
domain: zha
device_id: "{{switch}}"
led_number: 2
effect_type: Clear
color: 0
level: 100
duration: 255
- type: issue_individual_led_effect
domain: zha
device_id: "{{switch}}"
led_number: 3
effect_type: Clear
color: 0
level: 100
duration: 255
- type: issue_individual_led_effect
domain: zha
device_id: "{{switch}}"
led_number: 4
effect_type: Clear
color: 0
level: 100
duration: 255
- type: issue_individual_led_effect
domain: zha
device_id: "{{switch}}"
led_number: 5
effect_type: Clear
color: 0
level: 100
duration: 255
- type: issue_individual_led_effect
domain: zha
device_id: "{{switch}}"
led_number: 6
effect_type: Clear
color: 0
level: 100
duration: 255
mode: single
icon: mdi:led-outline
But it throws the following error:
Message malformed: Unknown device '{{switch}}'
As far as I can see based on the docs, this is the correct syntax… is device_id not able to take a variable?