[RELEASE] Leviton Smart Load Center — Hubitat Driver (LDATA / LWHEM)
Sharing a Hubitat driver for the Leviton Smart Load Center (LDATA / LWHEM panels with smart breakers). Ported from the excellent rwoldberg/ldata-ha Home Assistant integration — all API credit goes to rwoldberg.
What It Does
- Real-time per-circuit power monitoring via WebSocket (same live feed as the My Leviton app)
- Auto-creates child devices under the panel — one per smart breaker, one per CT clamp
- Per breaker: Power (W), Current (A), Voltage (V), Frequency (Hz), Energy (kWh), Breaker State
- CT clamps: Power, Current, Energy (Grid, Solar, Generator, etc.)
- Optional remote breaker trip/reset for 2nd gen breakers — disabled by default
- Auto-reconnecting WebSocket with REST polling fallback for energy counters
Supported Hardware
Device Support Leviton LWHEM / LWHEM-2 (2nd gen) Full
Leviton LDATA (1st gen) Full
2nd Gen Smart Breakers (Remote On/Off) Monitor + Control
1st Gen Smart Breakers Monitor only
CT Clamp Sensors (Grid / Solar / Generator) Monitor
Installation (No plan for HPM release since this is niche)
Install the Child driver first, then the Parent.
- Go to Drivers Code → + New Driver and paste + save each driver — Child first:
- Go to Devices → Add Device → Virtual, set Type to
Leviton Smart Load Center Parent, save.- Open the device, enter your My Leviton email and password in Preferences, click Save Preferences.
The driver will log in, discover your panel, and auto-create all child devices. Watch Logs for
[LDATA]messages — takes about 30–60 seconds.
Breaker Control Safety
Enable Allow Breaker Control in Preferences to unlock Switch commands on breaker child devices.
off= TRIPS the breaker (cuts power immediately)on= RESETS the breaker (restores power)- Only 2nd gen breakers with
canRemoteOn = truesupport remote reset — check that attribute before automating- All commands go through Leviton's cloud — won't work without internet
Troubleshooting
No child devices? — Confirm both drivers are saved with names exactly as shown above. Check Logs for errors.
Auth Failed? — Wrong credentials, or 2FA is enabled on your account. Temporarily disable 2FA in the My Leviton app, save Preferences to re-auth, then re-enable it. Token lasts ~60 days.
Power showing 0W? — Click Refresh on the parent to wake the panel. Confirm it shows Connected in the My Leviton app.
Re-discover after renaming circuits? — Use Delete Children on the parent, then Refresh.
Credits: rwoldberg for all the hard API work. Please post questions or issues in this thread with your
panelFirmwareattribute value and debug logs. Happy monitoring!
2 Likes
Leviton LDATA / LWHEM Driver Update — v1.2.0 ( Parent & Child Driver)
Fixes & Stability
- Fixed WebSocket protocol handling (removed incorrect Socket.IO logic causing disconnects)
- Improved WebSocket stability and reduced reconnect loops
- Added better heartbeat tracking to detect real connection loss only
- Fixed duplicate WS updates for breakers and CTs
REST / Polling Improvements
- Removed
bandwidthToggle()from regular polling (was resetting WebSocket connection)- Keepalive now only runs in a controlled way during setup
Reliability Fixes
- Fixed multiple numeric type issues (Float/BigDecimal/Integer crashes)
- Improved breaker/CT data handling and update safety
- Better total power calculation stability
Debug Logging
- Debug logging now auto-disables after 30 minutes to keep logs clean
Summary
This update focuses on fewer disconnects, cleaner logs, and more stable real-time updates.
1 Like