Skip to content

/json/state updates with v: true not published to MQTT #4643

Open
@chatziko

Description

@chatziko

What happened?

When the "v": true option is passed to /json/state API, the updated values are not published to MQTT. If "v" is missing then the MQTT updates are published as expected.

This is always reproducible under both 0.15.1.beta2 and 0.14.4.

To Reproduce Bug

  • Enable MQTT
  • curl -X POST "http://<host>/json/state" -d '{"bri": 91, "on": true,"v":true}' -H "Content-Type: application/json"
  • Observe the MQTT topics not getting updated
  • curl -X POST "http://<host>/json/state" -d '{"bri": 100, "on": true}' -H "Content-Type: application/json"
  • Observe the update being published to MQTT

Expected Behavior

Updates with "v": true should be published to MQTT.

Install Method

Binary from WLED.me

What version of WLED?

0.15.1.beta2

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions