home-assistant / ui-schema

A schema to define a user interface for Home Assistant.
Apache License 2.0
41 stars 6 forks source link

Improve UI for input_datetime #209

Closed ghost closed 5 years ago

ghost commented 5 years ago

@baflo commented on Jan 4, 2018, 9:24 AM UTC:

The UI for input_datetime - at least for the time input - is very basic. Especially on mobile devices the experience is not very well. It doesn't even handle jumping from the "hours" field to the "minutes" field when two digits were entered.

Using HTML5 input elements like <input type="time"/> would allow the app to use the OS's time input methods, which should be much more elegant.

Alternatively, I found this project: https://www.webcomponents.org/element/fooloomanzoo/datetime-picker

This issue was moved by iantrich from home-assistant/home-assistant-polymer#785.

ghost commented 5 years ago

@raccettura commented on Jan 10, 2018, 4:44 PM UTC:

Might be a wider discussion but can there be perhaps a flag to decide when to polyfill vs use native OS input methods?

The reason I mention this is OS input methods don't work as well in all use cases, for example one that always annoys me is passcode for alarm in android pops up the full screen keyboard... hard to use with a wall mounted tablet. An option to reduce that to a polyfilled numeric input would be much more suited. For wall mount, I think in general the polymer based inputs are actually pretty nice with touch devices.

ghost commented 5 years ago

@baflo commented on Jan 24, 2018, 8:35 AM UTC:

That flag you describe, would you add it as a configuration item? Or how was the flag be set?

iantrich commented 5 years ago

@baflo is this in reference to the entities card?

Misiu commented 5 years ago

Maybe a picker similar to this would be a nice addition?

ghost commented 5 years ago

This issue was moved by iantrich to home-assistant/home-assistant-polymer#3920.