Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jtroberts83/685cdfe312deeb52b78fc92ab84c062a to your computer and use it in GitHub Desktop.
Save jtroberts83/685cdfe312deeb52b78fc92ab84c062a to your computer and use it in GitHub Desktop.
Main automation file. You need to create a counter helper called daily_automation_count
alias: Track Automation Invocations
description: Counts the number of automation invocations in a day
trigger:
- platform: event
event_type: automation_triggered
condition:
- condition: not
conditions:
- condition: template
value_template: |
{{ trigger.event.data.entity_id in [
'automation.track_automation_invocations'
] }}
enabled: true
action:
- service: counter.increment
target:
entity_id:
- counter.daily_automation_count
data: {}
mode: queued
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment