Skip to content

v1.1.0 - Segment menu served by the usermod (/um.js)

Choose a tag to compare

@intermittech intermittech released this 18 Jul 01:06
· 7 commits to main since this release

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's index.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_INJECT capability guard) and relays are linked on the Usermods settings page instead - the one-line custom_usermods install 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.git

Full documentation in the wiki.