Number Duration Input #3597
Unanswered
trasbd
asked this question in
Other UI enhancements
Replies: 1 comment 1 reply
-
|
Possibly duplicate or closely related to https://github.com/orgs/home-assistant/discussions/804 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the enhancement
The input for entities with a number domain and device_class: duration should support a structured time format (HH:MM:SS or similar) instead of requiring a single decimal value.
Possible interfaces could be
There should be an option or setting (similar in concept to the existing
precisionattribute and possible integrated using thenumber'smodeattribute) that allows the user or integration to control how the value is entered and displayed. Either this new proposed segemented interface or the current decimal based.Use cases
This improvement is important for both accuracy and usability:
Precision:
User experience:
Data consistency & analytics:
Visual examples
Displayed is the current UI with the accuracy issue. Currently some integration's workaround is to use the
timeentity.timevisually has the desired format but only if a 24-hour clock is used. The non 24-hourtimeused as duration is also pictured below.Anything else?
I think the parsing of the input for a segmented duration is already in the frontend, but I could be reading it wrong.
https://github.com/home-assistant/frontend/blob/dev/src/components/ha-duration-input.ts
Honestly I'm thinking it should be like entering a cook time on a microwave.
Beta Was this translation helpful? Give feedback.
All reactions