微信扫码登录
46
595
4425
元老级技术达人
time: - platform: sntp # ... on_time: # Every 5 minutes - seconds: 0 minutes: /5 then: - switch.toggle: my_switch # Every morning on weekdays - seconds: 0 minutes: 30 hours: 7 days_of_week: MON-FRI then: - light.turn_on: my_light # Cron syntax, trigger every 5 minutes - cron: '* /5 * * * *' then: - switch.toggle: my_switch
使用道具 举报
bhc1365 发表于 2021-8-24 09:19 你这上面的是每5分钟触发一次,下面的是每天7:30触发。我需要的是在一个时间段里通过开门时才触发。 ...
bhc1365 发表于 2021-8-24 13:49 这好像有点思路了,其中打开和关闭自动化应该怎样写呢??
globals: - id: g_bmsg type: bool restore_value: no initial_value: 'false'
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )
GMT+8, 2025-8-2 16:27 , Processed in 0.088709 second(s), 8 queries , MemCached On.
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.