-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Support new date, time and date/time entities in Home Assistant #2267
Comments
I have started working towards this. |
@jesserockz How do we use this? |
I don't this feature has been implemented yet. |
@jessrockz Is there any progress on this? We can add an Input Helper and text_sensor to do this, but it's clunky. The scenario I'm looking at is to allow me to set a timeout for a relay and know it will be honoured even if the HA connection goes down. It seems far better to tell the ESPHome instance when I want the relay to be switched off, rather than trusting that HA will be around to actually turn it off in the future (particularly for longer timeouts). A datetime sensor on ESPHome that I can set when I turn on the relay would allow the ESPHome code itself to check when the timer has expired and automatically turn off the relay. |
The start of this was just added in v2024.3.0: So far it only supports the |
|
Support for the The final piece is the |
Describe the problem you have/What new integration you would like
The latest Home Assistant release (2023.6) just added support for integrations to provide date, time and date/time entities.
Quote from the release announcement.
I would like to see ESPHome support these entities so we can have UI configuration for time automation.
Please describe your use case for this integration and alternatives you've tried:
I currently implement a solution using a input_datetime helper with a Home Assistant attribute sensor to pull in the timestamp and then make comparisons using an
on_time
trigger every minute.At very least, it would be nice if ESPHome could provide the date, time or date/time entities even if they don't integrate automatically with the
on_time
trigger. This would at least eliminate the need to manually create and link an input_datetime to the device.Additional context
#1333 also made a similar request, but there wasn't HA support at the time. The linked alarm clock example utilizes a similar solution to the one I described above.
The text was updated successfully, but these errors were encountered: