The assumption is you’re using a Numeric State Trigger to monitor an entity’s state value. It’ll need to be modified if it’s monitoring an entity’s attribute.
Please post the entire automation in YAML format (as formatted text, not an image).
EDIT
At first glance, you can’t use trigger.to_state.state like that in a wait_for_trigger. However, I would like to see the entire automation to get a better understanding of what you are attempting to do.
As suspected, that Template Trigger won’t work the way you want. Assuming the automation was triggered by a temperature value of 14, the template would effectively become this:
{{ 14 | int(0) > 19 }}
The result of that is false and it will never become true because nothing changes within the template.
Perhaps this is more along the lines of what you want:
The template checks if the state value of whatever entity was responsible for triggering the automation exceeds 19. It waits up to 5 minutes for this to happen (and if it doesn’t, it simply continues anyways because continue_on_timeout is true).
In addition to Taras’ response above, you may need to change your condition block… though it’s hard to tell what you are trying to do from what you have provided. Are there actually two person entities whose states need to be checked?
I can understand @123 your explanation to why it wasn’t working from using the original value and this need to be a live value so thank you for explaining this as it make perfect sense.
However am still having issues and it’s not triggering
1)It triggers on a room temperature dropping below a certain point
2) checks one of 2 people are home
3) sends a notification to let us know
4)turns heating on
**Working to this point **
5) checks the room that triggered as got to a certain temperature
6) turns heating off
7) sends a notification to let us know
Point 5 seems to be the issue am trying to use a wait for with a Value template* with the above suggestion however is not working
Describe your expectations of what should happen versus what is actually happening.
What I suggested above will wait for the temperature to exceed 19 degrees OR timeout after 5 minutes. Either way, it continues executing the balance of the automation.
A wait_for_trigger with a Template Trigger is effectively the same thing as a wait_template. Both wait for the template’s result to change from false to true.
I just used this however within a Wait for a template to evaluate to true little confused to why it started worked after I changed it, if they work in the same way, maybe just removing and adding the wait back in make a difference?
Regardless your help got me to the answer I was after and prevented me from having 3 separate automations to do the same thing.