Replies: 1 comment
-
I resolved this by adding a value template to the automation {{ trigger.to_state.attributes.team_score | int - trigger.from_state.attributes.team_score | int == 6 }} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey fellow sports fans,
I have set up an automation to display a dashboard and play a sound everytime my Australian Football League (AFL) team scores using:
trigger: state
entity_id:
attribute: team_score
In AFL, teams can score a point (1) or a goal (6 points). I only want to trigger the automation when they score a goal ie only when the total score increments by 6.
How can I set up this trigger?
Beta Was this translation helpful? Give feedback.
All reactions