Notify me if a Door is open when we leave or at night.

This commit is contained in:
CCOSTAN
2016-12-04 06:06:08 +00:00
parent d9e7355e4b
commit 79a4f3eea8

View File

@@ -54,12 +54,30 @@
for: 00:05:00
condition:
- condition: sun
after: 'sunset'
- condition: template
value_template: "{{ states('cover.garadget_large') == 'opened' }}"
- condition: template
value_template: "{{ states('cover.garadget_small') == 'opened' }}"
condition: or
conditions:
- condition: and
conditions:
- condition: state
entity_id: group.family
state: not_home
for: 00:05:00
- condition: or
conditions:
- condition: template
value_template: "{{ states('cover.garadget_large') == 'opened' }}"
- condition: template
value_template: "{{ states('cover.garadget_small') == 'opened' }}"
- condition: and
conditions:
- condition: sun
after: 'sunset'
- condition: or
conditions:
- condition: template
value_template: "{{ states('cover.garadget_large') == 'opened' }}"
- condition: template
value_template: "{{ states('cover.garadget_small') == 'opened'}}"
action:
service: script.ifttt_notify