Skip to main content

Power Management

Power settings live on System → Work mode card (same page: preferences, OTA—see screenshot). Also via API getPowerParam / setPowerParam or MQTT set_power. Stored in NVS, survives reboot.

System page with work mode

Choosing a mode​

ModeWhen to useBehavior summary
Always-on (default)Push anytime, MQTT always when awakeNo deep sleep; Wi‑Fi/MQTT stay up
Scheduled refreshDashboard every N minutesWake → (optional wake image) → online wakeSec s → sleep sleepMin min → repeat
SleepLong idle, max savingsDeep sleep until button wake; panel holds image

No “half-online keepalive” tier: MQTT keepalive only while device is awake.


Steps: always-on​

  1. Open System.
  2. Select Always-on in work mode.
  3. Save work mode.
  4. Overview Sleep should show always-on.

To sleep temporarily: Sleep now (rejected if SoftAP is on—close hotspot first).


Steps: scheduled refresh (dashboard)​

  1. System → select Scheduled refresh.
  2. Set:
    • Period (min) sleepMin: sleep duration before next wake, ~1–525600;
    • Online window (sec) wakeSec: stay awake on network, 30–600, default 120;
    • Wake image (optional): image URL each wake (platform can vary per cycle).
  3. Save work mode.
  4. Device arms sleep on new schedule; if SoftAP is on or not yet online, sleep may defer (close hotspot / get IP then sleep).
tip

If the device cannot join the router after boot, it still sleeps after the max online window (600 s) to avoid staying awake until battery dies.


Steps: sleep mode​

  1. Select Sleep.
  2. Save work mode.
  3. Behavior:
    • Not on SoftAP: usually enters deep sleep quickly;
    • Save while on SoftAP: UI shows shutdown-style message; actual sleep waits until hotspot closes (avoid sleeping mid-provision).

Wake: next section.


Waking from deep sleep​

ActionResult
Short / long MAINWake → SoftAP (blue LED)
Short / long PAGEWake → BLE (cyan LED)
Timer (scheduled refresh only)Auto wake; optional wake image
Hardware RESETExit provision handoff; restore last frame
Short-press while awake

A short MAIN / PAGE press does not open SoftAP / BLE (LED unchanged), but it cancels the sleep timer and re-arms the online window on release (especially visible in scheduled refresh: short-press ≈ “stay awake a bit longer”). Opening provision still needs a ~2.5 s long-press.


Preferences: URL image quality​

Same System page, Preferences → URL images:

OptionEffect
Quality first (default)Finer, slower device URL/wake decode
Speed firstFaster; more grain; huge JPEG may downsample

Affects device URL fetch only; browser Image mode push unchanged.

Language (中文 / English) is in preferences—local web UI only.


Status LED quick reference​

ColorMeaning
Blue blinkSoftAP
Orange blinkWi‑Fi connect / reconnect
Cyan blinkBLE
Solid greenRunning (online) or idle unprovisioned
Red short blinkFault (provision / OTA / panel)
Magenta fast blinkOTA in progress
OffDeep sleep (LED and panel power off)

MQTT state does not change LED color—use Overview badges.


API / MQTT notes​

  • setPowerParam: only fields present in body change; if neither mode nor sleepMin, sleep schedule unchanged (can update only wakeSec / wakeUrl / imageQuality).
  • May return sleepDeferred: "softap" or "no_sta".
  • sleepNow rejected while SoftAP is on.

See HTTP API, MQTT protocol.