Created
April 26, 2025 03:17
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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