-
Notifications
You must be signed in to change notification settings - Fork 736
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 soil sensor variant _TZE284_aao3yzhs
and _TZE284_sgabhwa6
#3315
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #3315 +/- ##
=======================================
Coverage 88.27% 88.27%
=======================================
Files 302 302
Lines 9447 9453 +6
=======================================
+ Hits 8339 8345 +6
Misses 1108 1108 ☔ View full report in Codecov by Sentry. |
_TZE284_aao3yzhs
This quirk also works for Tuya soil sensor variant _TZE284_sgabhwa6 |
_TZE284_aao3yzhs
_TZE284_aao3yzhs
a
_TZE284_aao3yzhs
a_TZE284_aao3yzhs
and _TZE284_sgabhwa6
|
||
|
||
class TuyaSoilSensorVar02(CustomDevice): | ||
"""Tuya temp and humidity sensor (variation 05).""" |
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.
"""Tuya temp and humidity sensor (variation 05).""" | |
"""Tuya soil sensor (variation 2).""" |
The other docstring is also wrong, can't add a suggestion for that here though. Feel free to PR the change for TuyaSoilSensor
. It still says "temp and humidity sensor".
EDIT: Actually, this is a temp/humidity sensor. So, it's fine.
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.
The numbering seems a bit wrong overall. Feel free to improve it in a future PR.
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.
Thanks!
Got a TZE284_aao3yzhs so fingers crossed for when this releases :) |
I agree the soil moisture reading seems quite low, but I have confirmed it does read 100% (or near enough) when the probes are fully immersed in water, so I believe the readings are being scaled correctly. My battery level isn't being detected either, but my experience has been that some sensors take 24 hours to start producing battery level, so still waiting in hope. It would be nice to change the battery type to 3AA instead of 2AAA. |
Quickly looking at the z2m convertor, I doubt the battery will work for _TZE284_sgabhwa6. Looks like it uses dp 115 for battery where the _TZE284_aao3yzhs uses 15. |
It's been in since HA 2024.9, if you are on the latest HA and it's still not showing, I'd open an incident with your signature, diagnostics, and logs. |
Sorry that was a simple fix, I should have checked the version first. I just installed home assistant from the CasaOS store yesterday so I assumed it would be the latest version but it was 2024.5 for some reason. I updated to the latest and it's working correctly now. Thanks! |
Proposed change
Add support for TUYA TS0601 _TZE284_aao3yzhs
Also adds support for TS0601_TZE284_sgabhwa6. @GeoffWy confirms suitability for TS0601_TZE284_sgabhwa6.
Additional information
Fixes: #3305
Fixes: #3266
Checklist
pre-commit
checks pass / the code has been formatted using Black