Add buttons to Ring chime devices to play ding and motion chimes#71370
Add buttons to Ring chime devices to play ding and motion chimes#71370balloob merged 4 commits intohome-assistant:devfrom
Conversation
|
Hey there @balloob, mind taking a look at this pull request as it has been labeled with an integration ( |
ee44c0a to
3e9c2f3
Compare
balloob
left a comment
There was a problem hiding this comment.
Great contribution! Left a few tiny cleanup comments.
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
59a38b1 to
809e0bd
Compare
|
Thanks @balloob! Happy to be helping out. :) Addressed those comments and fixed some style issues; awaiting approval checks again. |
|
Merged, great first contribution. It will be in tonights nightly 👍 |
|
Shouldn't this have used the siren (https://www.home-assistant.io/integrations/siren/) platform? While I do know it's a bit messy with lack of ability to play a specific signal from UI, it works from services |
|
Happy to! Sorry for the miss; I have only been working with Home Assistant for a week or two. Are sirens required to continue playing until turned off? Or is it appropriate for sirens to play one sound and then turn themselves off? My assumption was the former, but please correct me if I am wrong. It isn't clear from the docs. Partially based on this assumption, I felt like a button was more appropriate for a few reasons:
I felt like a button was very clear to the user, given these limitations: it isn't stoppable, and it will only happen once (and you can make it work with the Happy to make the change to the siren if someone can fill me in on the best practices with these device limitations in mind! :) |
|
It's fine for a siren to play once at the moment. Though i do see the problem/ambiguity. Still siren is the correct place for it. It might be that we need to adjust how the siren platform work a bit later. |
|
ACK, thanks! I will try and get that PR submitted over the next week or so. Personally, I think sirens and chimes could be disambiguated into two platforms, but that's definitely a discussion for another place and time. |
Proposed change
The Ring Chime products are great little noisemakers for notifications. There are some people (myself included) who may want to play these sounds outside of the context of a doorbell.
This adds two buttons per Chime device, one for playing each kind of chime notification (ding, motion).
Type of change
Additional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: