Skip to content

Relay not switching on at power-up with boot-preset #5312

@DedeHai

Description

@DedeHai

What happened?

At bootup, the relay pin is not switched on (or not set as an output) if "power on at boot" is not set even if the boot-up preset uses "on":true
After switching off the LEDs and switching them back on, it works as intended.
This is confusing as the UI shows everything working and the LEDs being on, even data is sent to the LEDs but they are not powered as the relay stays off.

To Reproduce Bug

disable "power on at boot" in settings.
set relay pin for example to GPIO25, power on the MCU -> relay does not switch on.

Expected Behavior

when the UI shows the LEDs are on and data is sent, the relay should also be on.

Install Method

Self-Compiled

What version of WLED?

0.16

Which microcontroller/board are you seeing the problem on?

Other

Relevant log/trace output

C3 and ESP32 classic tested.

Anything else?

maybe a comment should be added to the settings that "Turn LEDs on after power up/reset" will be overridden if the boot-preset has "on" set to true.

Code of Conduct

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions