mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-20 04:04:06 +00:00
Notify me if a Door is open when we leave or at night.
This commit is contained in:
@@ -54,12 +54,30 @@
|
||||
for: 00:05:00
|
||||
|
||||
condition:
|
||||
- condition: sun
|
||||
after: 'sunset'
|
||||
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
|
||||
|
Reference in New Issue
Block a user