Aircoookie / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
https://kno.wled.ge
MIT License
14.2k stars 3.03k forks source link

Unable to connect WLED v0.15 to Openhab #3991

Open danielvoigt01 opened 1 month ago

danielvoigt01 commented 1 month ago

What happened?

openhab can no longer be used with WLED devices with beta version 0.15. An error message appears due to an incorrect value in the json/state $.rem (It is presented in the nightlight part nl event with NightlightActive false):

json_rem_error

It is therefore no longer possible to control the device.

However, the error is apparently due to a change in json.cpp:

image

If I write out the line again in the original block, it works... Unfortunately I don't know why....

image

To Reproduce Bug

Is visible in esp32dev and esp32dev_audioreactive in WLED/json/state in the nl --> rem part. I have also tested the precompiled versions, with the same result.

Expected Behavior

The expected behavior is the rem value '-1' if the nightlightActive is false ("nl":{"on":false})

Install Method

Self-Compiled

What version of WLED?

WLED 0.15.0-b3

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

No response

Anything else?

No response

Code of Conduct