Skip to content

[WWSTCERT-13849] feat(zigbee): add SONOFF TRV-ZBT thermostat - #3204

Open
QuAnnan2019 wants to merge 15 commits into
SmartThingsCommunity:mainfrom
QuAnnan2019:codex/sonoff-trv-zbt-wwst
Open

QuAnnan2019 wants to merge 15 commits into
SmartThingsCommunity:mainfrom
QuAnnan2019:codex/sonoff-trv-zbt-wwst

Conversation

@QuAnnan2019

Copy link
Copy Markdown

Summary

  • Add SONOFF TRV-ZBT fingerprint and standard-capability thermostat profile.
  • Add SONOFF-specific handling for thermostat state, battery percentage, work mode, and Bluetooth pairing.
  • Add integration coverage for reports, commands, configuration, and refresh.

Validation

  • Verified with a physical SONOFF TRV-ZBT device.
  • test_sonoff_trv_zbt.lua: 7/7 passed.
  • Lua syntax checks passed for the SONOFF driver and test files.

Comment thread drivers/SmartThings/zigbee-thermostat/profiles/thermostat-sonoff-trv-zbt.yml Outdated
Comment thread drivers/SmartThings/zigbee-thermostat/src/sonoff/init.lua
Comment thread drivers/SmartThings/zigbee-thermostat/src/sonoff/init.lua Outdated
Comment thread drivers/SmartThings/zigbee-thermostat/src/sonoff/init.lua
Comment thread drivers/SmartThings/zigbee-thermostat/src/sonoff/init.lua Outdated
@KKlimczukS
KKlimczukS requested a review from cbaumler September 23, 2026 13:30
@KKlimczukS KKlimczukS changed the title feat(zigbee): add SONOFF TRV-ZBT thermostat [WWSTCERT-13849] feat(zigbee): add SONOFF TRV-ZBT thermostat Sep 23, 2026
@cjswedes
cjswedes requested a review from KKlimczukS September 25, 2026 17:12
@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 Sep 25, 2026 •

Copy link
Copy Markdown

zigbee-thermostat_coverage.xml

File Coverage
All files 95% ✅
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-thermostat/src/stelpro/init.lua 87% ❌
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-thermostat/src/wallhero/init.lua 96% ✅
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-thermostat/src/sinope/init.lua 97% ✅
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-thermostat/src/sonoff/init.lua 95% ✅
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-thermostat/src/popp/init.lua 92% ✅
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-thermostat/src/stelpro-ki-zigbee-thermostat/init.lua 96% ✅
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-thermostat/src/lazy_load_subdriver.lua 57% ❌
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-thermostat/src/init.lua 97% ✅
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-thermostat/src/zenwithin/init.lua 97% ✅
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-thermostat/src/vimar/init.lua 89% ❌
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-thermostat/src/lux-konoz/can_handle.lua 83% ❌
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-thermostat/src/aqara/init.lua 94% ✅
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-thermostat/src/resideo_korea/init.lua 90% ✅

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against d5336ca

@github-actions

github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Test Results

   73 files    542 suites   0s ⏱️
3 285 tests 3 285 ✅ 0 💤 0 ❌
5 274 runs  5 274 ✅ 0 💤 0 ❌

Results for commit d5336ca.

♻️ This comment has been updated with latest results.

Comment thread drivers/SmartThings/zigbee-thermostat/profiles/thermostat-sonoff-trv-zbt.yml Outdated
Comment thread drivers/SmartThings/zigbee-thermostat/src/sonoff/init.lua
Comment thread drivers/SmartThings/zigbee-thermostat/src/sonoff/init.lua Outdated
Comment thread drivers/SmartThings/zigbee-thermostat/src/sonoff/init.lua Outdated

@KKlimczukS KKlimczukS left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

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.

3 participants