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.

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.

Services

datetime services

Available servicesA service carries out one specific task, for example: turn on the light in the living room. A service has targets and data and can be called by actions, a dashboard, or via voice command.
[Learn more]
: datetime.set_value

Service datetime.set_value

Set a new value for the datetime entityAn entity represents a sensor, actor, or function in Home Assistant. Entities are used to monitor physical properties or to control other entities. An entity is usually part of a device or a service.
[Learn more]
.

Service data attribute Optional Description
entity_id no String or list of strings that point at entity_id’s of datetimes to control.
datetime no New datetime value to set. If timezone is not included, the Home Assistant instance’s timezone will be used.