[12:22:25][D][switch:055]: 'Onboard LED': Sending state ON
[12:22:26][D][switch:020]: 'Onboard LED' Toggling OFF.
[12:22:26][D][switch:055]: 'Onboard LED': Sending state OFF
[12:22:27][D][switch:020]: 'Onboard LED' Toggling ON.
[12:22:27][D][switch:055]: 'Onboard LED': Sending state ON
[12:22:29][D][switch:020]: 'Onboard LED' Toggling OFF.
[12:22:29][D][switch:055]: 'Onboard LED': Sending state OFF
[12:22:29][D][switch:020]: 'Onboard LED' Toggling ON.
[12:22:29][D][switch:055]: 'Onboard LED': Sending state ON
But the physical red light stays on, on the ESP32-WROOM-32D
If it’s immediately on when you power your board, it’s not controllable.
There’s no rule for LEDs, some boards have two, others just power and some have connected to gpio.