Time

The Time integration集成将 Home Assistant 与您的设备、服务等连接和集成。 [Learn more] is built for controlling and monitoring times on devices.

Note

构建模块集成

这个 time 是一个构建模块集成,无法直接添加到你的 Home Assistant 中,但可以被其他集成使用和提供。

构建模块集成不同于典型的与设备或服务连接的集成。相反,其他将设备或服务集成到 Home Assistant 中的集成使用这个 time 构建模块来提供实体、服务和其他你可以在自动化或仪表板中使用的功能。

如果你的某个集成具有这个构建模块,这个页面记录了 time 构建模块所提供的功能。

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

The state of a time entity

The state of a time entity实体表示 Home Assistant 中的传感器、执行器或功能。实体用于监控物理属性或控制其他实体。实体通常是设备或服务的一部分。 [Learn more] is a timestamp in the format HH:MM:SS.

Screenshot showing the state of a time entity in the developer tools Screenshot showing the state of a time entity in the developer tools.

In addition, the entity can have the following states:

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

Actions

Time actions

Available actions: time.set_value

Action time.set_value

Set a new value for the time entity.

Data attribute Optional Description
entity_id no String or list of strings that point at entity_id’s of times to control.
time no New time value to set.