Time
Time 集成用于控制和监测设备上的时间值。
Building block integration
This time is a building block integration that cannot be added to Home Assistant directly, but is used and provided by other integrations. A building block integration differs from a typical integration that connects to a device or service. Instead, other integrations use this time building block to provide entities, actions, and other functionality that you can use in your automations or dashboards. If one of your integrations uses this building block, this page documents the functionality the time building block offers.
如果您想创建类似的实体,请参阅日期/时间助手。
时间实体的状态
时间实体的状态是采用 HH:MM:SS 格式表示的时间值。
在开发者工具中显示时间实体状态的截图。
此外,该实体还可能具有以下状态:
- Unavailable:实体当前不可用。
- Unknown:当前状态未知。
操作
时间操作
可用操作:time.set_value
操作:设置值
time.set_value 操作用于为时间实体设置新值。
entity_id- 可选:否
- 说明:指向要控制的时间实体
entity_id的字符串或字符串列表。
time- 可选:否
- 说明:要设置的新时间值。

