Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions home-assistant-configuration/automation/demo-time-pattern.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#https://www.home-assistant.io/docs/automation

id: efbb8954de8045ddaa0aa814bde515ae
alias: run-nano
trigger:
#https://www.home-assistant.io/docs/automation/trigger/#time-trigger
platform: time_pattern
seconds: 20
action:
- service: switch.turn_on
target:
entity_id: switch.demo_light_2
- delay:
seconds: 3
- service: switch.turn_off
target:
entity_id: switch.demo_light_2
5 changes: 4 additions & 1 deletion home-assistant-configuration/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ auth_header:
username_header: X-Forwarded-Email
# Optionally enable debug mode to see the headers Home-Assistant gets
debug: true


automation mine: !include_dir_list automation/


lovelace:
mode: yaml
resources: !include lovelace/resources.yaml
Expand Down