• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zwave-js / zwave-js-ui / 26153656584

20 May 2026 09:25AM UTC coverage: 18.585% (-0.01%) from 18.596%
26153656584

push

github

web-flow
feat(ui): add Last Awake column for battery-powered nodes (#4643)

`lastActive` updates on any packet received from a node — including data
sent while asleep. Battery devices need a separate timestamp tracking
when the node actually transitioned to **Awake** (i.e., when it can
receive commands from the controller).

## Changes

### Backend (`api/lib/ZwaveClient.ts`)
- Added `lastAwake?: number` to `ZUINode`
- `_onNodeWakeUp` now sets `node.lastAwake = Date.now()` and emits a
partial socket update so connected clients receive the value immediately

### Frontend (`src/components/nodes-table/nodes-table.js`)
- Added `lastAwake` column (`type: 'date'`, label `"Last Awake"`) to the
nodes table — available in the column selector alongside `lastActive`;
mains-powered nodes simply show nothing

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: robertsLando <11502495+robertsLando@users.noreply.github.com>

339 of 455 branches covered (74.51%)

Branch coverage included in aggregate %.

0 of 15 new or added lines in 2 files covered. (0.0%)

4142 of 23656 relevant lines covered (17.51%)

1.12 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/components/nodes-table/nodes-table.js


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc