Add time_input component for user-defined schedules #3420
Unanswered
plplaaa2
asked this question in
New Components
Replies: 0 comments
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.
-
Describe the component you'd like
Currently, ESPHome does not provide a native way for users to input and manage time values directly. To implement time-based automations, users must rely on workarounds such as:
Using Home Assistant’s input_datetime entity and importing it into ESPHome
Creating separate number components for hours and minutes, then combining them manually
These approaches are functional but not intuitive, and they increase YAML complexity.
Proposed Solution: Introduce a new time_input component that allows users to set time values (HH:MM) directly within ESPHome.
Single entity for time input, instead of separate hour/minute numbers
Compatible with existing triggers like on_time: and conditions like time.in_range
Exposed to Home Assistant for easy UI integration, similar to input_datetime
What are your use cases for this component?
Use Cases:
Do Not Disturb (DND) mode start/end times
Alarm scheduling
Lighting or energy-saving automations
Any scenario requiring user-defined time ranges without relying on Home Assistant
Is there a public datasheet, documentation and/or schematics?
No response
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions