-
Notifications
You must be signed in to change notification settings - Fork 761
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
Sonoff SWV-BSP Smart Water Valve improvements #3930
base: dev
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #3930 +/- ##
==========================================
+ Coverage 91.00% 91.03% +0.02%
==========================================
Files 328 328
Lines 10656 10687 +31
==========================================
+ Hits 9698 9729 +31
Misses 958 958 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
FWIW, I have a similar PR minus the |
…ficiency. Thanks to @fgsch
Thank you @fgsch, I've updated the code. I didn't see your PR, I'm sorry. |
👍
I haven't tried it yet. IIUC you are using the attribute for the automatic valve close if there is no water together with the timing irrigation command for this purpose? Is this correct?
No worries. I changed the name to match other devices. Might as well do it here but really up to you. |
I'm sorry I don't understand your question. I added the I added also the two alarms, because I found your PR #3346 that added the attributes and I read that the other PRs in ZHA needed for the |
I added these features to the Sonoff SWV-BSP Smart Water Valve (see #3298):
on_time
attribute, representing the number of seconds after opening before the valve automatically closes.on_time == 0
it's a normal On command (0x01
)on_time != 0
it sends a on_with_timed_off (0x42
), with theon_time
numbers of seconds sets in the attributeThis is my first attempt at creating a Quirk.
Any advice on whether I'm following the correct way would be appreciated.
Thank you!
Checklist
pre-commit
checks pass / the code has been formatted using Black