notifications

This commit is contained in:
CeeWeasel
2024-04-27 11:20:04 -04:00
parent 9abc71df4a
commit 2be72e5764
8 changed files with 25 additions and 10 deletions
@@ -13,6 +13,7 @@ condition:
- "{{ 'driveway' in trigger.payload_json['after']['entered_zones'] }}"
- "{{ 'from_street' in trigger.payload_json['after']['entered_zones'] }}"
- "{{ trigger.payload_json['after']['label'] == 'person' }}"
- "{{ is_state('input_boolean.outdoor_snapshots','on') }}"
action:
@@ -37,6 +37,7 @@ condition:
- '{{ is_state("binary_sensor.outer_garage_door","off") }}'
- '{{ is_state("binary_sensor.front_door_contact","off") }}'
- '{{ is_state("binary_sensor.patio_door_contact","off") }}'
- "{{ is_state('input_boolean.outdoor_snapshots','on') }}"
action:
- choose:
- conditions: "{{ not group_target }}"
@@ -41,6 +41,7 @@ condition:
- "{{ not stationary }}"
- "{{ not zones|length or zones|select('in', entered_zones)|list|length > 0 }}"
- "{{ not labels|length or object in labels }}"
- "{{ is_state('input_boolean.outdoor_snapshots','on') }}"
#- "{{ not presence_entity or not is_state(presence_entity, 'home') }}"
#- "{{ not garage_door or not is_state(garage_door, 'on') }}"
@@ -39,6 +39,7 @@ condition:
- '{{ is_state("binary_sensor.patio_door_contact","off") }}'
- '{{ is_state("binary_sensor.front_porch_motion","off") }}'
- '{{ is_state("binary_sensor.garage_motion_switch_home_security_motion_detection","off") }}'
- "{{ is_state('input_boolean.outdoor_snapshots','on') }}"
action:
- choose:
- conditions: "{{ not group_target }}"
@@ -45,6 +45,7 @@ condition:
- "{{ not stationary }}"
- "{{ not zones|length or zones|select('in', entered_zones)|list|length > 0 }}"
- "{{ not labels|length or object in labels }}"
- "{{ is_state('input_boolean.outdoor_snapshots','on') }}"
#- "{{ not presence_entity or not is_state(presence_entity, 'home') }}"
#- "{{ not garage_door or not is_state(garage_door, 'on') }}"
+8 -1
View File
@@ -26,7 +26,14 @@ condition:
value_template: "{{ dict((states|selectattr('entity_id', 'in', state_attr('group.person_household', 'entity_id'))|list)|groupby('state'))['on']|count }}"
action:
- service: input_boolean.turn_off
entity_id: input_boolean.home_occupied
target:
entity_id: input_boolean.home_occupied
- service: input_boolean.turn_on
target:
entity_id:
- input_boolean.indoor_snapshots
- input_boolean.outdoor_snapshots
- service: automation.turn_on
data:
entity_id: automation.garage_open_nobody_home
+7 -1
View File
@@ -30,7 +30,13 @@ condition:
value_template: "{{ dict((states|selectattr('entity_id', 'in', state_attr('group.person_household', 'entity_id'))|list)|groupby('state'))['on']|count }}"
action:
- service: input_boolean.turn_on
entity_id: input_boolean.home_occupied
target:
entity_id: input_boolean.home_occupied
- service: input_boolean.turn_off
target:
entity_id: input_boolean.indoor_snapshots
- service: automation.turn_off
data:
entity_id: automation.garage_open_nobody_home