-
Notifications
You must be signed in to change notification settings - Fork 754
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 Tuya mmWave radar 5.8GHz, ZY_HPS01 _TZE204_ex3rcdha
#3887
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #3887 +/- ##
=======================================
Coverage 91.00% 91.00%
=======================================
Files 328 328
Lines 10651 10652 +1
=======================================
+ Hits 9693 9694 +1
Misses 958 958 ☔ View full report in Codecov by Sentry. |
a5e223c
to
f0d495d
Compare
.tuya_number( | ||
dp_id=111, | ||
attribute_name="breath_detection_min", | ||
type=t.uint16_t, | ||
min_value=0, | ||
max_value=600, | ||
step=10, | ||
unit=UnitOfLength.CENTIMETERS, | ||
translation_key="breath_detection_min", | ||
fallback_name="Breath detection min", | ||
) | ||
.tuya_number( | ||
dp_id=112, | ||
attribute_name="breath_detection_max", | ||
type=t.uint16_t, | ||
min_value=0, | ||
max_value=600, | ||
step=10, | ||
unit=UnitOfLength.CENTIMETERS, | ||
translation_key="breath_detection_max", | ||
fallback_name="Breath detection max", | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, these don't have the "distance" device class, but still centimeters as the unit. Is that correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be missing for others as well. We should add all of these in another PR.
# Conflicts: # tests/test_tuya_motion.py # zhaquirks/tuya/tuya_motion.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the conflict. We should add the device classes for the distance entities in another PR, as they seem to be missing for quite a few entities.
Proposed change
Adds Tuya mmWave radar 5.8GHz, ZY_HPS01
_TZE204_ex3rcdha
Based on: /~https://github.com/Koenkk/zigbee-herdsman-converters/blob/6c3d7e2aa1fba6f6342baea21e5b3bbd3688cb0e/src/devices/tuya.ts#L13228
Additional information
Closes: #3309
Checklist
pre-commit
checks pass / the code has been formatted using Black