Skip to content

Effect list returned to Home Assistant is not filtered for 2D #4364

@thermseekr

Description

@thermseekr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    HomeAssistantexternalNot part of WLED itself - an external plugin/remote etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions