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
Create zwave-js select platform and discover additional siren values #53018
Conversation
Hey there @home-assistant/z-wave, mind taking a look at this pull request as its been labeled with an integration ( |
Maybe have it be 0-100% for both current and default volume level? |
Right now the siren platform uses The reason I chose |
Generally I think percent is more intuitive. Let's ask around and hear what others think. |
I would agree. I've asked the members group for input, let's see what they say |
People seem to be split. I looked across all non media player integrations for volume settings and the ones that are most commonly used (alexa and google assistant) use 0-1. There are two integrations that use 0-100 for custom services but that's it. While I think that 0-100 is more intuitive, I think it's better to be consistent because it's otherwise not intuitive. So I am adjusting the number entity to be 0-1 |
Co-authored-by: kpine <keith.pine@gmail.com>
ab1e01a
to
a9ae99a
Compare
not sure if this is waiting for some more response, but if so, please consider merging so we can go ahead and test. Now that sirens are supported in core, being able to set the volume more intuitively is of utmost priority.. Current situation is very counter intuitive. my vote would be for percentage too, but in all honesty, could live with the other option too. |
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.
Looks good!
Proposed change
This PR adds the
select
platform tozwave_js
and adds two new values for discovery from siren devices - default tone, and default volume level.One thing to note here is that thesiren
platform entity uses a volume level between 0-1 but the default volume levelnumber
entity uses a volume level between0-100%
. I originally made a separatenumber
entity class to represent the default volume as being between 0 and 1 but the UI component fornumber
entities seems better optimized for larger values. With that being said, I can add that back if it makes sense to be consistent across the two platforms given that these are for the same device.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: