mirror of
https://github.com/esphome/esphome.git
synced 2026-09-30 16:30:22 +00:00
[time] Use set_interval for CronTrigger instead of loop()
This commit is contained in:
@@ -6,5 +6,12 @@ api:
|
||||
|
||||
time:
|
||||
- platform: homeassistant
|
||||
on_time:
|
||||
- at: "16:00:00"
|
||||
then:
|
||||
- logger.log: It's 16:00
|
||||
- cron: "0 30 * * * *"
|
||||
then:
|
||||
- logger.log: Every hour at 30 minutes
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
|
||||
Reference in New Issue
Block a user