Being that it’s groovy (I haven’t looked at the code itself), parameters to a method can be defaulted in the declaration itself in the event nothing is passed, e.g.
I’ve only done some minimal tinkering in Hubitat apps/drivers, but it should be able to handle defaulting if there’s minimal benefit to method overloading.
Was looking at this with a spare bulb I have, and Inovelli’s current driver appears to use the Switch Multilevel v3 command class. According to the Z-Wave Alliance docs, the LZW42 only supports v2. Changing line 224 (the call in startLevelChange()) to use v2, including removing the parameters that aren’t available in v2, works for me. Something like this:
That being said, perhaps the Alliance docs are outdated — maybe v3 is supported and something else is wrong. Anyway, this might be a quick fix for anyone who wants something before Hubitat releases their built-in driver fix or wants to use Inovelli’s driver.