node-zwave-js icon indicating copy to clipboard operation
node-zwave-js copied to clipboard

Multilevel Switch values can get exposed although Window Covering CC is supported

Open AlCalzone opened this issue 2 years ago • 4 comments

...these will result in errors when used

AlCalzone avatar Sep 25 '23 13:09 AlCalzone

This seems to happen when devices support both Window Covering CC and Multilevel Switch CC, and report changes of the Window Covering status using Multilevel Switch CC instead, see also https://github.com/zwave-js/node-zwave-js/discussions/7049

AlCalzone avatar Oct 22 '24 08:10 AlCalzone

👋 any updates on this? I think I'm running into it, happy to provide any debug info needed to get this fixed up! 🙌

com6056 avatar Aug 28 '25 07:08 com6056

I know what needs to be done - it's just a matter of finding the time to actually tackle this. Let's see if we can't kickstart this.

AlCalzone avatar Sep 08 '25 12:09 AlCalzone

Some device support both the Window Covering CC and Multilevel Switch CC for backwards compatibility. As per the Z-Wave specifications, Multilevel Switch CC must be hidden in favor of Window Covering CC if supported. All controlling of the device should go through Window Covering CC.

However, some device still report their status using Multilevel Switch CC. Even though Z-Wave JS originally filters out those values, the unsolicited reports cause them to get exposed to applications.

@Copilot find where incoming Multilevel Switch CC reports are handled. If Window Covering CC is supported, make sure the Multilevel Switch CC reports are mapped to the corresponding Window Covering CC values instead. This probably requires refactoring the automatic persistence of Multilevel Switch CC values in favor of handling those reports "manually", like we already do for Basic CC for example.

AlCalzone avatar Sep 08 '25 12:09 AlCalzone