tests fonction time
This commit is contained in:
parent
ff78365e71
commit
8b71e2bb63
@ -214,3 +214,26 @@ interval:
|
|||||||
- light.turn_on: wifi_status_led
|
- light.turn_on: wifi_status_led
|
||||||
else:
|
else:
|
||||||
- light.turn_off: wifi_status_led
|
- light.turn_off: wifi_status_led
|
||||||
|
|
||||||
|
time:
|
||||||
|
- platform: sntp
|
||||||
|
# ...
|
||||||
|
on_time:
|
||||||
|
# Every 5 minutes
|
||||||
|
- seconds: /5
|
||||||
|
#minutes: /5
|
||||||
|
then:
|
||||||
|
- switch.toggle: ${name}_ext_led
|
||||||
|
|
||||||
|
# Every morning on weekdays
|
||||||
|
- seconds: 0
|
||||||
|
minutes: 30
|
||||||
|
hours: 7
|
||||||
|
days_of_week: MON-FRI
|
||||||
|
then:
|
||||||
|
- light.turn_on: wifi_status_led
|
||||||
|
|
||||||
|
# Cron syntax, trigger every 5 minutes
|
||||||
|
- cron: '00 /5 * * * *'
|
||||||
|
then:
|
||||||
|
- switch.toggle: ${name}_ext_led
|
||||||
|
Loading…
x
Reference in New Issue
Block a user