Skip to content

Add support for Tuya thermostats#3071

Merged
KKlimczukS merged 12 commits into
SmartThingsCommunity:mainfrom
r-slezak:tuya-thermostat
Jul 2, 2026
Merged

Add support for Tuya thermostats#3071
KKlimczukS merged 12 commits into
SmartThingsCommunity:mainfrom
r-slezak:tuya-thermostat

Conversation

@r-slezak

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

Adds support for Tuya thermostats.

Summary of Completed Tests

Tested doConfigure and added lifecycle events, and setHeatingSetpoint and setThermostatMode capabilities.

@github-actions

Copy link
Copy Markdown

Duplicate profile check: Passed - no duplicate profiles detected.

@github-actions

github-actions Bot commented Jun 26, 2026

Copy link
Copy Markdown

Test Results

   73 files  ± 0    519 suites  +1   0s ⏱️ ±0s
2 978 tests +15  2 978 ✅ +15  0 💤 ±0  0 ❌ ±0 
4 876 runs  +16  4 876 ✅ +16  0 💤 ±0  0 ❌ ±0 

Results for commit 4f4b3ad. ± Comparison against base commit 52ae995.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Jun 26, 2026

Copy link
Copy Markdown

File Coverage
All files 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/Unofficial/tuya-zigbee/src/curtain/init.lua 93%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/Unofficial/tuya-zigbee/src/smoke-detector/init.lua 96%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/Unofficial/tuya-zigbee/src/thermostat/init.lua 92%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against 4f4b3ad

@KKlimczukS KKlimczukS requested a review from cbaumler June 29, 2026 15:08

@hcarter-775 hcarter-775 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.

mostly LGTM, withholding approval until a category is added. Thanks!

Comment thread drivers/Unofficial/tuya-zigbee/profiles/thermostat.yml
Comment on lines +21 to +27
enabledValues:
- antifreezing
- auto
- comfort
- eco
- off
- on

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.

since these are configured directly in the "device_added" handler, we can drop this here to avoid too much hardcoded stuff

Comment thread drivers/Unofficial/tuya-zigbee/src/thermostat/init.lua Outdated
deviceLabel: Tuya Thermostat
manufacturer: _TZE284_fziifcxj
model: TS0601
deviceProfileName: thermostat No newline at end of file

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.

nit: I see it was like this before, but newline please (as I'm already making suggestions). Thank you

@KKlimczukS KKlimczukS requested a review from hcarter-775 July 1, 2026 15:20
@KKlimczukS

Copy link
Copy Markdown
Contributor

mostly LGTM, withholding approval until a category is added. Thanks!

hi @hcarter-775 Please let us know if this is acceptable now.

@hcarter-775 hcarter-775 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!

@KKlimczukS KKlimczukS merged commit 65a2532 into SmartThingsCommunity:main Jul 2, 2026
15 of 19 checks passed
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