diff --git a/automations.yaml b/automations.yaml index ae6ade5..f038443 100644 --- a/automations.yaml +++ b/automations.yaml @@ -2427,7 +2427,7 @@ enabled: false conditions: - condition: template - value_template: "{{ (now() - state_attr('automation.motion_backyard_ai_description_version_2', 'last_triggered')).total_seconds() > 60 }}" + value_template: "{{ (now() - state_attr(this.entity_id, 'last_triggered')).total_seconds() > 60 }}" - condition: template value_template: "{{ trigger.event.data.new_state.attributes.event_type in ['motion', 'person', 'animal', 'chime'] }}"