-
-
Notifications
You must be signed in to change notification settings - Fork 37.7k
Add tuya water timer data points #170314
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 water timer data points #170314
Changes from 2 commits
730c3ed
efaa80e
962f161
78c2790
493451e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -229,6 +229,13 @@ | |
| ), | ||
| DeviceCategory.SFKZQ: ( | ||
| # Controls the irrigation duration for the water valve | ||
| NumberEntityDescription( | ||
| key=DPCode.COUNTDOWN, | ||
| translation_key="irrigation_duration", | ||
| device_class=NumberDeviceClass.DURATION, | ||
| entity_category=EntityCategory.CONFIG, | ||
| ), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove the COUNTDOWN entity from this PR There is a general opinion within the HA core team that these are invalid, and that the other existing countdown entities should be removed. If you wish to press ahead please do so in a dedicated PR for just the COUNTDOWN entity.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the clarification — understood, I’ll remove COUNTDOWN from this PR. Could you point me to where this team decision/discussion is documented? I’d like to better understand the rationale, since for this Tuya sfkzq water timer the countdown is functionally important in practice. On this device, commands from Home Assistant/Alexa currently run with a default of 10 minutes, while only the Tuya/Smart Life app can set a custom duration via countdown. From a user perspective, exposing that value in HA would be very useful. If the preferred path is a dedicated PR just for COUNTDOWN, I’m happy to prepare that — I just want to align with the expected model first.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Basically:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
that's actually the case here, the countdown represents the irrigation duration but the valve needs to be opened by a separate action. Once the valve is open, the countdown indication when it closes again. Thank you so much for your review, tips and explanations 🚀 |
||
| # Controls the irrigation duration for indexed water valves | ||
|
epenet marked this conversation as resolved.
Outdated
|
||
| NumberEntityDescription( | ||
| key=DPCode.COUNTDOWN_1, | ||
| translation_key="indexed_irrigation_duration", | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.