Skip to content

Conversation

Fy-atto7
Copy link

@Fy-atto7 Fy-atto7 commented Aug 15, 2025

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

We have a thermostat device that needs to add the ”fanSpeedPercent“ capability, so we made special modifications for it.

Summary of Completed Tests

We added Unit Test and tested with real device.

@CLAassistant
Copy link

CLAassistant commented Aug 15, 2025

CLA assistant check
All committers have signed the CLA.

Copy link

@vangoran vangoran left a comment

Choose a reason for hiding this comment

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

LGTM

table.insert(main_component_capabilities, capabilities.fanMode.ID)
for _, p in ipairs(THERMOSTAT_SUPPORTED_PERCENT_PRODUCTS) do
if device.manufacturer_info.vendor_id == p[1] and device.manufacturer_info.product_id == p[2] then
table.insert(main_component_capabilities, capabilities.fanSpeedPercent.ID)
Copy link

Choose a reason for hiding this comment

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

Additional capability support for specific vendor's product (under CN WWST program)

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