Skip to content

Add the pressure display function to SNZB-02M - #3194

Open
laity-w-sudo wants to merge 4 commits into
SmartThingsCommunity:mainfrom
laity-w-sudo:main
Open

Add the pressure display function to SNZB-02M#3194
laity-w-sudo wants to merge 4 commits into
SmartThingsCommunity:mainfrom
laity-w-sudo:main

Conversation

@laity-w-sudo

@laity-w-sudo laity-w-sudo commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Check all that apply

Type of Change

  • WWST Certification Request
    • If this is your first time contributing code:
      • I have reviewed the README.md file
      • I have reviewed the CODE_OF_CONDUCT.md file
      • I have signed the CLA
    • I plan on entering a WWST Certification Request or have entered a request through the WWST Certification console at developer.smartthings.com
  • Bug fix
  • New feature
  • Refactor

Checklist

  • I have performed a self-review of my code
  • I have commented my code in hard-to-understand areas
  • I have verified my changes by testing with a device or have communicated a plan for testing
  • I am adding new behavior, such as adding a sub-driver, and have added and run new unit tests to cover the new behavior

Description of Change

Adding the air pressure function to the SNZB-02M equipment

Summary of Completed Tests

@github-actions

Copy link
Copy Markdown

Duplicate profile check: Passed - no duplicate profiles detected.

@github-actions

Copy link
Copy Markdown

Profile category check: ✅ Passed - all profiles have a category defined.

@github-actions

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Aug 25, 2026

Copy link
Copy Markdown

Test Results

   73 files    542 suites   0s ⏱️
3 262 tests 2 818 ✅ 0 💤 0 ❌ 444 🔥
5 251 runs  4 663 ✅ 0 💤 0 ❌ 588 🔥

For more details on these errors, see this check.

Results for commit 0909220.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Aug 25, 2026

Copy link
Copy Markdown

zigbee-humidity-sensor_coverage.xml

File Coverage
All files 98%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-humidity-sensor/src/init.lua 93%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-humidity-sensor/src/lazy_load_subdriver.lua 57%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-humidity-sensor/src/frient-sensor/air-quality/init.lua 98%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-humidity-sensor/src/plant-link/init.lua 96%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-humidity-sensor/src/sonoff/SNZB-02M/init.lua 91%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against 0909220

The SNZB-02M sub-driver was added but never registered, so the
pressure display feature was dead code on the device. Register it
via sub_drivers.lua, drop the unrelated SNZB-02LD/WD handler and
utils (not in this driver, and referencing a nonexistent sub-driver),
and add unit tests for pressure conversion and refresh.

Co-Authored-By: Claude <noreply@anthropic.com>
@laity-w-sudo
laity-w-sudo force-pushed the main branch 2 times, most recently from ae161d5 to b5e3665 Compare August 25, 2026 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants