Skip to content

Add SONOFF TP-WGZBA Zigbee thermostat support - #3240

Closed
viys wants to merge 1 commit into
SmartThingsCommunity:mainfrom
viys:tp-wgzba
Closed

viys wants to merge 1 commit into
SmartThingsCommunity:mainfrom
viys:tp-wgzba

Conversation

@viys

@viys viys commented Sep 21, 2026

Copy link
Copy Markdown

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

Add SONOFF TP-WGZBA support to the zigbee-thermostat driver.

  • Manufacturer: SONOFF
  • Model: TP-WGZBA
  • Protocol: Zigbee
  • Driver: zigbee-thermostat (new sonoff / sonoff.tp_wgzba sub-drivers)

Implementation

  1. Fingerprint SONOFF/TP-WGZBA → profile thermostat-sonoff
  2. Standard Thermostat cluster for mode, heating setpoint, operating state, and local temperature calibration
  3. Manufacturer-specific cluster 0xFC11 (mfg 0x1286) for child lock, open-window, temporary/override mode, radar, screen, relay polarity, NTC, and overheat protection
  4. Integration tests aligned with current sonoff/tp_wgzba/init.lua behavior

Summary of Completed Tests

  • test_sonoff_tp_wgzba_thermostat.lua: 25/25 passed (local Lua 5.3 + capability definitions)
  • Covered: lifecycle (init/added/driverSwitched/doConfigure), refresh, standard thermostat reports/commands, private attribute reports/writes, temporary mode commands, threshold/time-period/relay capability writes

Co-authored-by: Cursor <cursoragent@cursor.com>
@CLAassistant

CLAassistant commented Sep 21, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@viys viys closed this Sep 21, 2026
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