WWSTCERT-9786 Inovelli - adding vzw31 red series dimmer switch#2654
WWSTCERT-9786 Inovelli - adding vzw31 red series dimmer switch#2654InovelliUSA wants to merge 5 commits intoSmartThingsCommunity:mainfrom
Conversation
|
Duplicate profile check: Passed - no duplicate profiles detected. |
|
Invitation URL: |
Test Results 72 files 497 suites 0s ⏱️ Results for commit cfeb252. ♻️ This comment has been updated with latest results. |
|
Minimum allowed coverage is Generated by 🐒 cobertura-action against cfeb252 |
|
I got the certification request in and passed the test suite. One thing that was strange is that the default multilevel report handler was not sending the level: 0 event. This was causing the driver to timeout when set to 0%. I verified that my device was sending the correct report: 2025-12-20T23:16:21.173926679Z INFO Z-Wave Switch <ZwaveDevice: b79a7858-b383-4072-aaf9-9b5dc1a5e96b [84] (Inovelli Dimmer Red Series)> received Z-Wave command: {args={current_value="OFF_DISABLE", duration=0, target_value=0, value="OFF_DISABLE"}, cmd_class="SWITCH_MULTILEVEL", cmd_id="REPORT", dst_channels={}, encap="NONE", payload="\x00\x00\x00", src_channel=0, version=4} To get it to pass the test I had to handle that report myself. I did not test yet if this is a problem on other devices (maybe something got changed on the default multilevel report handling)? local function onoff_level_report_handler(driver, device, cmd) If I need to create some unit tests I can do it next week. |
There was a problem hiding this comment.
Yes, please include some unit tests.
I'm not seeing anything in the default handler that would result in the message you posted failing. If you could reproduce and then upload hub logs I could check if you share the hub ID. (At https://my.smartthings.com/advanced under "hubs" click "dump hub logs").
Sorry I lost track of this and will try to get to it tomorrow. |
|
@greens I got distracted on other projects, but just pushed several tests up for this commit. |
| local supported_button_values = { | ||
| ["button1"] = {"pushed","held","down_hold","pushed_2x","pushed_3x","pushed_4x","pushed_5x"}, | ||
| ["button2"] = {"pushed","held","down_hold","pushed_2x","pushed_3x","pushed_4x","pushed_5x"}, | ||
| ["button3"] = {"pushed","held","down_hold","pushed_2x","pushed_3x","pushed_4x","pushed_5x"} | ||
| } |
There was a problem hiding this comment.
| local supported_button_values = { | |
| ["button1"] = {"pushed","held","down_hold","pushed_2x","pushed_3x","pushed_4x","pushed_5x"}, | |
| ["button2"] = {"pushed","held","down_hold","pushed_2x","pushed_3x","pushed_4x","pushed_5x"}, | |
| ["button3"] = {"pushed","held","down_hold","pushed_2x","pushed_3x","pushed_4x","pushed_5x"} | |
| } | |
| local supported_button_values = | |
| {"pushed","held","down_hold","pushed_2x","pushed_3x","pushed_4x","pushed_5x"} |
Since they are all the same, you dont need to define them 3 times.
There was a problem hiding this comment.
Thanks, I made the adjustment. There is a Jenkins driver test failure though, but I don't think that is from my change. Maybe it is ?
There was a problem hiding this comment.
I'm looking into this. Currently passing against the latest release artifact here, so it should be good.
Check all that apply
Type of Change
Checklist
Description of Change
Adding the VZW31-SN dimmer switch. This device is very similar to the VZW32-SN so code addition is minimal.
Summary of Completed Tests
Tested on live device and tested with beta user. Need to run through the test suite still.