Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for ts0225 _TZ3218_awarhusb presence sensor #3953

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from

Conversation

rafmet
Copy link

@rafmet rafmet commented Mar 11, 2025

Out of the box support is very limited - only IAS zone sensor is available which makes the device pretty useless.
This quirk is based on zigbee-herdsman-converters linptech.ts and information from this issue Koenkk/zigbee2mqtt#18637
It adds support for setting detection distance, fading time and static and motion sensitivity.
It lacks support of illuminance measurement.

Proposed change

Additional information

Fixes: #2599

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

Copy link

codecov bot commented Mar 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.02%. Comparing base (b87ac89) to head (9e03f02).
Report is 19 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #3953      +/-   ##
==========================================
+ Coverage   91.00%   91.02%   +0.01%     
==========================================
  Files         328      329       +1     
  Lines       10656    10671      +15     
==========================================
+ Hits         9698     9713      +15     
  Misses        958      958              

☔ 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 Tuya Request/PR regarding a Tuya device needs reviewer answer An answer from a reviewer is needed (e.g. why a PR isn't acceptable in the current state). labels Mar 26, 2025
@rkhadro
Copy link

rkhadro commented Mar 28, 2025

Hi,
I tried this fix but unfortunately there's issues.
Sliders for motion sensitivity and distance, also static sensitivity are there and are effective
Fading time is in function to.

But:

  • The "Target Distance" and "Presence keep time" are never updated.
  • Some strange behaviour when the distance is changed, lack of detection.
  • No illuminance

Thank you for your work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs reviewer answer An answer from a reviewer is needed (e.g. why a PR isn't acceptable in the current state). Tuya Request/PR regarding a Tuya device
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Device Support Request] linptech Human Presence Sensor
4 participants