-
Notifications
You must be signed in to change notification settings - Fork 871
Add Tuya vibration sensor with accelerometer _TZE200_iba1ckek
#4242
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
base: dev
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #4242 +/- ##
=======================================
Coverage 92.13% 92.13%
=======================================
Files 358 359 +1
Lines 11919 11931 +12
=======================================
+ Hits 10981 10993 +12
Misses 938 938 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I don't know how to fix the Codecov errors. It doesn't seem to be exercising my converter function. Some of the other quirks in the codebase (that use the TuyaQuirkBuilder) have a similar structure to mine, with the converter function being referenced only in the .sensor/.enum/.whatever definition, and nowhere else, and with the converter function defined similarly to how I'm doing it. Some guidance on this issue would be grateful. |
_TZE200_iba1ckek
Works as intended. This adds the x, y and z acceleration values. Tested in 2025.8.3 |
@TheJulianJES I believe all of the Codecov issues have been resolved, with new test code incorporated into the PR. What's the next stage for having this PR accepted? Thankyou |
Proposed change
This change is to add a quirk for the Tuya TS0601 vibration sensor that provides sensors for accelerometer data.
Additional information
This quirk replaces a generic quirk that works only for vibration status, but presents no sensors for accelerometer data.
Checklist
pre-commit
checks pass / the code has been formatted using BlackI don't know how to write a test for the code. It loads correctly, allows pairing, and correctly presents the data without errors in the log.