Repository navigation
Conversation
…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
approved these changes
Dec 2, 2026
hcarter-775
self-requested a review
December 2, 2026 21:00
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Check all that apply
Type of Change
Checklist
Description of Change
The Third Reality smart blind (model
3RSB015BZ, manufacturerThird Reality, Inc) reportsCurrentPositionLiftPercentageper the ZCL spec (0 = fully open, 100 = fully closed). It currentlyjoins through the generic
genericShade-batteryfingerprint, so it gets the default handlers. Thosetreat the lift percentage as percent-open, which inverts positions in both directions:
shadeLevel0 / closed.setShadeLevel 80sendsGoToLiftPercentage(80), which drives the blind almost fully closed.openandclosealready work, since they use the UpOrOpen and DownOrClose commands.This change:
Third Reality, Inc/3RSB015BZto theinvert-lift-percentagesub-driver'scan_handle,which already covers IKEA, Smartwings and Insta. It is scoped to this model because it's the only
Third Reality cover verified.
Third Reality/3RSB015BZ) towindow-treatment-battery, so newjoins get a specific device label instead of the generic one.
Summary of Completed Tests
test_zigbee_window_shade_battery_thirdreality.lua(4 tests: lift 0 → open/100, lift 100 →closed/0, partial lift inverted,
setShadeLevelsends invertedGoToLiftPercentage). All 4 failwithout the fix and pass with it.
zigbee-window-treatmentsuite: 243/243 pass. luacheck is clean on the changed files.0x14(20) and the driver emittedshadeLevel80. Thestock driver showed 20.
setShadeLevel 30: the blind moved down and settled at lift0x46(70),shadeLevel30,physically about 30% open.
🤖 Generated with Claude Code