[RELEASE] Leviton Smart Load Center

[RELEASE] Leviton Smart Load Center 2.0.0 (LWHEM / LDATA)

A Hubitat integration for the Leviton Smart Load Center: live power, current, voltage and energy for every smart breaker and CT clamp, with optional remote trip and reset. Ported from the excellent rwoldberg/ldata-ha Home Assistant integration. All the API credit goes to rwoldberg.

:new: 2.0.0 is now a full integration under Integrations, installed through HPM. Coming from 1.2.x? See Upgrading from 1.2.x below.

What It Does

  • Live per-circuit power over the same cloud feed the My Leviton app uses, plus a backup refresh for energy counters
  • One device per panel with total power, voltage, frequency, firmware and connection status
  • Pick what you want: choose your panels, then turn breakers and CT clamps on or off on the Equipment page
  • Per breaker: Power (W), Current (A), Voltage (V), Frequency (Hz), Energy (kWh), Breaker State
  • CT clamps: Power, Current, Energy (Grid, Solar, Generator and so on)
  • Optional remote trip and reset, off by default
  • Takes care of itself: signs back in when Leviton's 60-day sign-in expires, and waits longer between retries when the Leviton cloud is down
  • Light on the hub: small power changes are skipped (5 W by default, adjustable) and live values stay in memory
  • One Log level for the app and every device, plus light and dark mode

Supported Hardware

Device Support
Leviton LWHEM / LWHEM-2 (2nd gen) :white_check_mark: Full
Leviton LDATA (1st gen) :white_check_mark: Supported (LDATA testers welcome)
2nd Gen Smart Breakers (Remote On/Off) :white_check_mark: Monitor + Control
1st Gen Smart Breakers :white_check_mark: Monitor + Trip (reset at the panel)
CT Clamps (Grid / Solar / Generator) :white_check_mark: Monitor (LWHEM only)

Installation

HPM (recommended): Install → Search for Leviton Smart Load Center.
Or Install → From a URL:
https://raw.githubusercontent.com/jdthomas24/Hubitat-Apps-Drivers/main/Leviton%20Smart%20Load%20Center/packagemanifest.json

Set up:

  1. Open Integrations in the left menu and add Leviton Smart Load Center.
  2. Enter your My Leviton email and password, then tap Done.
  3. The app signs in and adds each panel. The panels add their breakers and CT clamps in about 30 seconds.
  4. Open the app again and tap Equipment to turn off anything you don't want in Hubitat.

Your password stays in the app. It never appears on a device page and is never logged.

:warning: Breaker Control Safety

Turn on Allow breaker control in the app to use On and Off on breaker devices.

  • Off = TRIPS the breaker (cuts power to that circuit immediately)
  • On = RESETS the breaker (restores power)
  • Any rule, dashboard, voice command or "all switches off" that includes a breaker device can trip it. Keep breakers out of switch groups and voice assistants.
  • 1st gen breakers can be tripped from Hubitat but must be reset at the panel. Each breaker's Data section shows remoteOn: supported when it can be reset remotely.
  • Everything goes through Leviton's cloud, so control needs internet.

Options

Option Default What it does
Refresh interval 1 minute Energy counters and a backup read of every breaker
Report power changes of 5 W Smaller changes are skipped to keep hub load down
Live power updates On Power every few seconds. Off: power on the refresh interval only, much lighter on the hub
Allow breaker control Off Lets Off trip a breaker and On reset it

Upgrading from 1.2.x

2.0.0 uses new device types, so the old devices can't be upgraded in place. Both versions can run side by side while you switch over.

  1. Install 2.0.0 through HPM and set it up as above.
  2. Move your rules and dashboards to the new devices. Settings → Swap Device does it in one step per device.
  3. Delete the old Leviton Smart Load Center Parent device (its breakers go with it), then delete the two old drivers from Drivers Code.

Renamed attributes: energyConsumption is now energy, and the panel's totalPower is now power. presence and wsStatus are now connectionStatus. Slot, poles, rating and model moved to each breaker's Data section.

Troubleshooting

Sign-in failed? Check your email and password in the My Leviton app, fix them in the Hubitat app and tap Done.

Two-step verification? It isn't supported yet. You can turn it off in the My Leviton app, tap Done, then turn it back on. That sign-in lasts about 60 days. After that the app can't sign itself back in, and it will tell you so.

Panel offline or Reconnecting? It reconnects on its own. Check that the My Leviton app shows live data. If it does and Hubitat still doesn't after 10 minutes, set Log level to Full, tap Initialize on the Panel device, and post the log here.

Deleted a device by mistake, or one is missing? Use the app's Equipment page. Deleting a device from the Devices page turns it off there; turn it back on to recreate it.

Total power doesn't match a CT clamp? Panel power is the sum of every smart breaker, including ones you turned off in Equipment. Standard (non-smart) breakers report nothing.

Credits

Huge thanks to rwoldberg for all the hard API work behind this. Questions or issues? Post them here with your Panel's firmware value and a Full log. Happy monitoring! :zap:

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

:bar_chart: Summary

This update focuses on fewer disconnects, cleaner logs, and more stable real-time updates.

Leviton LDATA / LWHEM Driver Update — v1.2.1 (Parent & Child Driver)

Fixes & Stability

  • Fixed an issue where a single WebSocket update (e.g. a full panel snapshot right after a reconnect) could fire 1000+ events in one pass across all breakers/CTs, occasionally tripping Hubitat's "excessive hub load" protection and silently dropping that update
  • Child driver now only sends an event when a value has actually changed, instead of resending all ~15 attributes on every update
  • WebSocket re-subscription after a reconnect is now sent in small batches over a few seconds instead of all ~70+ subscriptions at once, spreading out the resulting reply burst from the server

Summary
This update focuses on reducing hub load and preventing dropped updates during reconnects — no settings or behavior changes otherwise. Recommended if you've ever seen WS parse error: Device X generates excessive hub load in your logs. Update both Parent and Child together.

[RELEASE] Leviton Smart Load Center 2.0.0
Now a full integration: sign in once, pick your panels, and choose which breakers and CT clamps Hubitat creates.

Problem: 1.2.x was a driver on a virtual device. It stopped working when Leviton’s 60-day sign-in expired, kept retrying every 5 seconds whenever the cloud was down, and put a heavy load on the hub. It also mixed up readings when you had more than one panel, and LDATA panels had no backup refresh.

The Fix:

  • Signs itself back in, and waits longer between retries when Leviton is down.
  • One device per panel.
  • Live values stay in memory, and small power changes are skipped.
  • An Equipment page to pick breakers and CTs.
  • One Log level for everything, and dark mode.
  • Your password stays in the app.

Action needed: 2.0.0 uses new device types, so it installs alongside 1.2.x.

  1. Install through HPM (search Leviton Smart Load Center) and set it up under Integrations.
  2. Move your rules with Settings → Swap Device.
  3. Delete the old Parent device and the two old drivers.

Release: Leviton Smart Load Center v2.0.1

Much lighter on the hub, and no more “excessive hub load” errors after a reboot.

Problem:
The Panel sent every value for every breaker and CT on every update, even when nothing had changed, and each device then re-read its own values to decide what to keep. On a full panel, that made the Panel one of the busiest devices on the hub. Right after a reboot, when everything refreshes at once, some hubs logged LimitExceededException (“generates excessive hub load”) errors, and a few values could be missed until the next update.

The Fix:

  • The Panel now sends each breaker and CT only the values that actually changed, using the same thresholds as before. Unchanged devices aren’t touched at all.
  • Whole-panel updates (after a reboot, and the regular refresh) go out in small batches instead of all at once.
  • Values, attributes and events are exactly the same as in 2.0.0, so your rules and dashboards keep working as they are.

Action needed: None. Update in HPM, no Done needed.

Release: Leviton Smart Load Center v2.0.2

Lighter on the hub again, especially the app.

Problem:
The Panel asked the app for the Leviton sign-in four times a minute, and the regular refresh made the hub wait on the Leviton cloud for each reply. On busy hubs this showed up as high app and Panel numbers in Logs, App and Device stats.

The Fix:
The Panel now keeps its sign-in in memory and only checks with the app every few hours, or when Leviton asks it to sign in again. The regular refresh no longer makes the hub wait, so a slow reply from Leviton can’t hold anything up.

Action needed:
Update through HPM. No setup changes.

Release: Leviton Smart Load Center v2.0.3
Tidier main page banner.

Problem:
The status banner at the top of the main page had an empty gap above it, a heavier border and a larger icon than Hubitat's built-in apps, and it got cramped on a phone.

The Fix:
The gap is gone, spacing and size now match the built-in apps, and the banner stacks cleanly on narrow screens. Cosmetic only.

Action needed:
Update through HPM. No Done needed.

Release: Leviton Smart Load Center v2.0.4

New Tips & Troubleshooting page in the app, the same as the other integrations.

Problem:

  • Tips & Troubleshooting page missing

The Fix:

  • New Tips & Troubleshooting page under Help & Support, covering setup, the Equipment page, options and hub load, breaker control, rules and dashboards, coming from 1.2.x, and troubleshooting.
  • It opens at the top of the page. On a phone, picking a topic takes you straight to it.
  • No changes to how anything works. The Panel, Breaker and CT drivers are bumped to 2.0.4 to keep every file on the same version.

Action needed: Update through HPM. No Done needed.