Repository navigation
v1.1.0 - Segment menu served by the usermod (/um.js)
The segment-card "Power relays" menu now ships inside the usermod: the device serves it at /um.js and the main web UI injects it after every state render, using the usermod UI-injection mechanism designed by blazoncek.
What changed
- Menu code moved into the usermod (
addUIInjectCode()) - it is no longer patched into WLED'sindex.js. Open/close state, per-relay assignment hints and the link checkboxes behave exactly as before. - The
ui-patch/folder now applies only a small, usermod-agnostic injection hook (4 core files, 8 insertions, script + manual docs updated). The hook is proposed for WLED mainline in wled/WLED#5741 - once merged, patching will not be needed at all. - Compiles against stock WLED bases too: on a base without the hook the menu code compiles out (
WLED_ENABLE_UM_UI_INJECTcapability guard) and relays are linked on the Usermods settings page instead - the one-linecustom_usermodsinstall keeps working everywhere.
Verified on hardware (QuinLED Dig-Next-4): menu renders from /um.js, survives UI re-renders, works over fetch and WebSocket updates.
Install (unchanged)
[env:my_build]
extends = env:esp32dev
custom_usermods = https://github.com/intermittech/wled-usermod-powermanager.gitFull documentation in the wiki.