Date/Time

The Date/Time integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] is built for the controlling and monitoring of timestamps on devices.

Note

Building block integration

This date/time is a building block integration that cannot be added to your Home Assistant directly but is used and provided by other integrations.

A building block integration differs from the typical integration that connects to a device or service. Instead, other integrations that do integrate a device or service into Home Assistant use this date/time building block to provide entities, services, and other functionality that you can use in your automations or dashboards.

If one of your integrations features this building block, this page documents the functionality the date/time building block offers.

If you are looking for a way to create a Date/Time entity, please take a look at the Date/Time helper.

Date/time states

The state of a date/time entity is the actual date and time value. The state value is in UTC, in the format YYYY-MM-DDTHH:MM:SS+00:00. For example, 2020-01-01T12:00:00+00:00. The Home Assistant interface shows the date and time in your local date and time format.

In addition, the entity can have the following states. Each item shows the interface label, followed by the stored state:

  • Unavailable (unavailable): The entity is currently unavailable.
  • Unknown (unknown): The state is not yet known.

List of actions

The Date/Time integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] provides the following actions. Each link below opens a dedicated page with examples, parameters, and a step-by-step UI walkthrough.

  • Set date/time (datetime.set_value) Sets the value of a date/time entity.

For an overview of every action across all integrations, see the actions reference.