-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Description
What happened?
In Home Assistant, when randomly selecting an effect using a template, sometimes WLED selects Solid instead of an existing effect.
To Reproduce Bug
Paste the template below in a Render Template Node in NodeRed.
{{ state_attr('light.light_name', 'effect_list') | random }}
Connect this node to a Debug and to a Call Service nodes. Inside the Call Service node, select turn_on as the service, select the relevant entity, and paste the expression below to the Data field.
{ "effect": msg.payload }
Every time the flow is run, the name of the selected effect will be shown in the Debug window in NodeRed and will be fed to the service call. Depending on the selected effect WLED will fall back to SOLID. Looking at the effects list in WLED one can see that in these cases the randomly selected effect do not match the name of any existing effect.
Expected Behavior
The name of the effects in effect_list should match the current effect names, so WLED will never fall back to SOLID.
Install Method
Binary from WLED.me
What version of WLED?
WLED 0.14.4 Hoshi Build 2405180
Which microcontroller/board are you seeing the problem on?
ESP32
Relevant log/trace output
No response
Anything else?
No response
Code of Conduct
- I agree to follow this project's Code of Conduct