Skip to content

Conversation

@3reality-support
Copy link
Contributor

@3reality-support 3reality-support commented Oct 9, 2025

Proposed change

This PR added adaptation code for curtain_gen1 and added 2 additional private clusters

  1. enable_disable_pir_remote: turn on or off the infrared remote control control
  2. allow_bind: open or close bind

Additional information

f1935114fd9588d5145f5a53d1dbbf9f

Device diagnostics

Checklist

  • The changes are tested and work correctly
  • pre-commit checks pass / the code has been formatted using Black
  • Tests have been added to verify that the new code works
  • Device diagnostics data has been attached

@codecov
Copy link

codecov bot commented Oct 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.13%. Comparing base (500e74e) to head (e5832c3).
⚠️ Report is 21 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #4378   +/-   ##
=======================================
  Coverage   92.12%   92.13%           
=======================================
  Files         358      359    +1     
  Lines       11917    11928   +11     
=======================================
+ Hits        10979    10990   +11     
  Misses        938      938           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TheJulianJES TheJulianJES added the manufacturer This request was made by the device's manufacturer label Oct 10, 2025
Comment on lines +42 to +48
.write_attr_button(
attribute_name=ThirdRealityCurtainCluster.AttributeDefs.allow_bind.name,
attribute_value=0x01,
cluster_id=ThirdRealityCurtainCluster.cluster_id,
translation_key="allow_bind",
fallback_name="Allow bind",
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

What does "Allow bind" do exactly? Is this related to cluster binding or to curtains being bound?
Does the device reset the value from 1 to 0 itself after this button is pressed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image For example, sending a bind request to the button, opening the bind, the curtain can send a request to establish contact, triggering an allow bind once, which can last for three minutes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

After writing 1, wait for 3 minutes until the end, and this value will become 0

@TheJulianJES TheJulianJES marked this pull request as draft October 28, 2025 18:51
@TheJulianJES TheJulianJES added the waiting for reply Waiting for a reply (e.g. to test a custom quirk) label Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

manufacturer This request was made by the device's manufacturer waiting for reply Waiting for a reply (e.g. to test a custom quirk)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants