Skip to content

Zigbee Window Treatment: invert lift percentage for Third Reality 3RSB015BZ - #3385

Open
srokaw wants to merge 1 commit into
SmartThingsCommunity:mainfrom
srokaw:thirdreality-blind-invert-lift
Open

srokaw wants to merge 1 commit into
SmartThingsCommunity:mainfrom
srokaw:thirdreality-blind-invert-lift

Conversation

@srokaw

@srokaw srokaw commented Nov 25, 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

The Third Reality smart blind (model 3RSB015BZ, manufacturer Third Reality, Inc) reports
CurrentPositionLiftPercentage per the ZCL spec (0 = fully open, 100 = fully closed). It currently
joins through the generic genericShade-battery fingerprint, so it gets the default handlers. Those
treat the lift percentage as percent-open, which inverts positions in both directions:

  • A fully open blind is reported as shadeLevel 0 / closed.
  • setShadeLevel 80 sends GoToLiftPercentage(80), which drives the blind almost fully closed.

open and close already work, since they use the UpOrOpen and DownOrClose commands.

This change:

  • Adds Third Reality, Inc / 3RSB015BZ to the invert-lift-percentage sub-driver's can_handle,
    which already covers IKEA, Smartwings and Insta. It is scoped to this model because it's the only
    Third Reality cover verified.
  • Adds a manufacturer fingerprint (Third Reality/3RSB015BZ) to window-treatment-battery, so new
    joins get a specific device label instead of the generic one.

Summary of Completed Tests

  • New test_zigbee_window_shade_battery_thirdreality.lua (4 tests: lift 0 → open/100, lift 100 →
    closed/0, partial lift inverted, setShadeLevel sends inverted GoToLiftPercentage). All 4 fail
    without the fix and pass with it.
  • Full zigbee-window-treatment suite: 243/243 pass. luacheck is clean on the changed files.
  • On device (3RSB015BZ, firmware 0x4C, Hub v3), with the driver installed from a personal channel:
    • Blind about 80% open: it reported lift 0x14 (20) and the driver emitted shadeLevel 80. The
      stock driver showed 20.
    • setShadeLevel 30: the blind moved down and settled at lift 0x46 (70), shadeLevel 30,
      physically about 30% open.

🤖 Generated with Claude Code

…B015BZ

The blind reports CurrentPositionLiftPercentage per the ZCL spec (0 = open),
so with the default handlers its position was inverted in both directions.
Route it through the invert-lift-percentage sub-driver and add a
manufacturer fingerprint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hcarter-775
hcarter-775 self-requested a review December 2, 2026 21:00
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