Skip to content

Commit

Permalink
Fixed a bug in 'frigate event summary' blueprint
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinfrlch committed Oct 18, 2024
1 parent 5d81fe5 commit 3f9ae95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion blueprints/frigate_analyzer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ condition:
- condition: template
value_template: '{{ trigger.payload_json["type"] == "end" }}'
- condition: template
value_template: "{{ (now() - state_attr(this.entity_id, 'last_triggered')).total_seconds() / 60 > cooldown }}"
value_template: >
{{ state_attr(this.entity_id, 'last_triggered') is none or
(now() - state_attr(this.entity_id, 'last_triggered')).total_seconds() / 60 > cooldown }}
action:
- service: llmvision.video_analyzer
Expand Down

0 comments on commit 3f9ae95

Please sign in to comment.