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 Tuya rain sensor - _TZ3210_tgvtvdoc #3656

Draft
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

prairiesnpr
Copy link
Collaborator

Proposed change

Adds: _TZ3210_tgvtvdoc

Based on: #3475
Closes: #3249

Requires a resolution to zigpy/zha#327

Additional information

Requires: #3643

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 Dec 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.92%. Comparing base (8b3560e) to head (9811ed9).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #3656   +/-   ##
=======================================
  Coverage   90.91%   90.92%           
=======================================
  Files         325      326    +1     
  Lines       10566    10575    +9     
=======================================
+ Hits         9606     9615    +9     
  Misses        960      960           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@TheJulianJES TheJulianJES added the Tuya Request/PR regarding a Tuya device label Jan 16, 2025
@Fredyy90
Copy link

I just tried your chages as a custom quirk in HASS looks like the battery state isn't working with it.

@prairiesnpr
Copy link
Collaborator Author

I just tried your chages as a custom quirk in HASS looks like the battery state isn't working with it.

I didn't implement the battery, what type of battery does it use?

@Fredyy90
Copy link

it has an internal battery thats charaged via solar, i think its a percentage value on tuya datapoint 4

@prairiesnpr
Copy link
Collaborator Author

it has an internal battery thats charaged via solar, i think its a percentage value on tuya datapoint 4

I'm away from PC today, you could try adding .tuya_battery(dp_id=4)

@prairiesnpr prairiesnpr force-pushed the add-rain-_TZ3210_tgvtvdoc branch from cbe1574 to ca7a3d5 Compare January 25, 2025 12:45
@prairiesnpr prairiesnpr force-pushed the add-rain-_TZ3210_tgvtvdoc branch from 9b2f241 to 9811ed9 Compare February 1, 2025 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tuya Request/PR regarding a Tuya device
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Device Support Request] Tuya rainsensor TS0207_TZ3210_tgvtvdoc
3 participants