#how can i make a trigger from above 90 towards 0?
21 messages · Page 1 of 1 (latest)
One NOT condition with 2 state conditions: NOT state == 0 AND NOT state == 90.
?
Ohhhhh... wait. So, you want to trigger when the sensor goes from 90 to 0?
But only that condition, right?
Trigger on numeric state change to 0
Condition filter trigger.from_state.state > 90 so anything less than that won't fire the actions
Huh?
If it triggers going to 0 but condition says it has to be above 90 it will never fire actions?
It cant go to 0 and be above 90 at the same time
I suppose i could make 10 trigers. Going from 90 to 0. 91 to 0. Etc...
But that seems silly
when in an automation you can check the trigger.from_state.state to get the value before it changed
trigger.to_state gives the new value
So this would be: Trigger If 0, ignore unless used to be > 90
With yaml?
template filter
- platform: state
entity_id:
- sensor.attic_temperature_temperature
to: "0"
condition:
- condition: template
value_template: "{{ trigger.from_state.state | float(0) > 90 }}"```
something like that
Thanks so in the condition field after all
idk if you'd prefer a state change to 0, or a numeric state change to < 0.01, the latter would probably be more reliable but the former is more clear when explaining
ye