Universal Z-Wave Dimmer fork: Z-Wave JS state-reporting and reliability fixes

I've published an unofficial maintenance fork of @jtp10181's Universal Z-Wave Dimmer 0.4.0, with the original credit and Apache 2.0 license preserved:

On my Leviton ZW6HD setup, button automations could turn the lights on physically while Hubitat—and consequently Apple Home—still showed them off until Refresh.

The driver was discarding valid reports with duration: null. This fork applies the previously discussed missing-duration handling: accept missing or zero duration, while continuing to ignore explicit nonzero transition durations. It processes actual reports; it does not add constant polling or optimistic state updates.

Other changes:

  • Preserve saved parameters when synchronization replies are missing.
  • Fix legitimate rapid on/off commands being blocked.
  • Remove automatic external HTTP check-ins, keeping local activity tracking.
  • Preserve brightness for on-only reports instead of publishing 255%.
  • Accept binary reports with missing duration too.
  • Count pending associations without scheduling radio commands.
  • Correct the logging timeout when preferences are partially unset.

Testing: The initial reporting fix passed on/off and dimming checks on my setup. All patches compiled on Hubitat and pass nine Groovy regression cases with mocked Hubitat interfaces. Broader hardware compatibility is not established.

Manual import: Raw driver source.

Back up first. The driver retains the upstream name/namespace; editing an existing driver entry affects all devices using it. After replacing the old code, remove its existing doCheckIn timers from Logs > Scheduled Jobs, leaving unrelated jobs alone.

This fork has no separate HPM package. Its embedded importUrl still points upstream, so use the fork URL above; upstream imports/repairs can overwrite these changes.

This targets incorrect state inside Hubitat, not HomeKit-only connectivity problems. Model, firmware, stack and redacted-log feedback are welcome.

AI disclosure: AI tools assisted with the patches, tests, code review and this draft. I performed the reported hardware checks.

1 Like