zigbee-contact: Fix garage door handling for SmartSense Multi
The original SmartSense Multi has a different z-axis than the newer sensors. When installed on the garage door it is parallel to the ground when the door is closed and perpendicular to the ground when the door is open. For this reason it can't share the garage door handling code that the newer sensors use. This change implements the necessary custom handling and adds a unit test.
https://smartthings.atlassian.net/browse/CHAD-13098
Once https://github.com/SmartThingsCommunity/SmartThingsEdgeDrivers/pull/1361 is approved and merged I'll rebase this branch to pick that up.
Channel deleted.
Test Results
57 files 364 suites 0s :stopwatch: 1 761 tests 1 761 :white_check_mark: 0 :zzz: 0 :x: 3 056 runs 3 056 :white_check_mark: 0 :zzz: 0 :x:
Results for commit 9418b11a.
:recycle: This comment has been updated with latest results.
| File | Coverage | |
|---|---|---|
| All files | 99% |
:white_check_mark: |
| /home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-contact/src/multi-sensor/init.lua | 97% |
:white_check_mark: |
| /home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-contact/src/smartsense-multi/init.lua | 95% |
:white_check_mark: |
Minimum allowed coverage is 90%
Generated by :monkey: cobertura-action against 9418b11a0a3ec9ed785334cde528ba08d9a1c513