Skip to content

Conversation

@TheJulianJES
Copy link
Collaborator

Proposed change

This fixes an issue where the binary tamper sensor is shown for the Frient Entry Sensor 2 Pro and Entry Sensor (basic) which both do not support the tamper sensor according to specifications.
It's only supported by the 1st Gen Frient Entry Sensor Pro.

Additional information

Follow-up to:

Device diagnostics

Should already be in ZHA diagnostics. I don't have the devices anyway.

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

@TheJulianJES TheJulianJES added bugfix This PR fixes a bug WWHA Works with Home Assistant partner labels Nov 14, 2025
@codecov
Copy link

codecov bot commented Nov 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.24%. Comparing base (1e5953b) to head (75bc49a).
⚠️ Report is 2 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #4491   +/-   ##
=======================================
  Coverage   92.24%   92.24%           
=======================================
  Files         369      369           
  Lines       12094    12096    +2     
=======================================
+ Hits        11156    11158    +2     
  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.

Comment on lines 31 to 32
.applies_to("Develco Products A/S", "WISZB-121")
.applies_to("frient A/S", "WISZB-121")
Copy link
Collaborator Author

@TheJulianJES TheJulianJES Nov 14, 2025

Choose a reason for hiding this comment

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

In Zigbee2MQTT, WISZB-121 (basic Entry Sensor, 1st Gen) supports the tamper sensor, but according to specsheet, it doesn't: https://cdn.prod.website-files.com/67f4edb3e49fc9eedd4d58ff/68627bf514b30153d4133678_Entry%20sensor_frient_v1.0.pdf

Copy link
Collaborator Author

@TheJulianJES TheJulianJES Nov 17, 2025

Choose a reason for hiding this comment

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

deCONZ seems to support tamper for the basic sensor (1st Gen) as well: https://github.com/dresden-elektronik/deconz-rest-plugin/blob/41d9a4933f45b6d14fbc96b9df0f8524ffb66c4c/devices/frient/wiszb-121_open_close_sensor.json#L111-L114

I'll adjust this PR to only remove the tamper sensor for the 2nd Gen Pro sensor then.
It would be good to get confirmation on this though 😄

Copy link
Contributor

Choose a reason for hiding this comment

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

Let me check the device itself, I might have one. Every one I added explicitly should have tamper sensor support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix This PR fixes a bug WWHA Works with Home Assistant partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants