编辑:只是注意到您是新成员,欢迎来到社区!
使用重复和time_pattern触发器。假设您希望这种图案不到12小时的时钟…
- 触发器: - 平台:time_pattern#在整个分钟时0分钟时每小时匹配每小时:0动作: - 重复:序列: - service:light.turn_on entity_id:light.xxx-延迟:“ 00:00:01” - 服务:服务:light.turn_off entity_id:light.xxx-延迟:“ 00:00:01”直到: - 条件:template value_template:> {{repot.index> = now()。小时%12 + 1}}
如果您想要24小时的闪光灯,请更改此信息:
value_template:> {{repot.index> = now()。小时%12 + 1}}
至
value_template:> {{repot.index> = now()。小时 + 1}}}