Skip to content

WLED turns ON if lx=0 is passed in JSON request -> should turn OFF #4962

@matbhe

Description

@matbhe

What happened?

A request with lx=0 (sent by loxone if the light is turned off) should turn OFF WLED.
But exactly the opposite thing happens, it turns WLED ON.
The LEDs are "dark" but WLED is on. This is bad because this enables also the relay output (e. g. for controlling a large power supply).

To Reproduce Bug

  1. Turn WLED off
  2. Send the request curl -X POST -H "Content-Type: application/json" -d '{"seg":[{"id":0,"lx":0}]}' 192.168.1.100/json
  3. Check wled state curl -s 192.168.1.32/json | jq '.state.on' -> true instead of false

Expected Behavior

The request {"seg":[{"id":0,"lx":0}]} should turn off WLED (or at least not turn on).
This would significantly simplify integration into Loxone and avoid workarounds.

Install Method

Binary from WLED.me

What version of WLED?

WLED 0.15.1 (build 2507300)

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugconfirmedThe bug is reproducable and confirmed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions