#Is there any reason ` is state button
1 messages · Page 1 of 1 (latest)
Buttons don't have states, so this can't work.
Secondary discovery: wait for trigger on templates is weird and doesn't work like I'd expect (It doesn't just keep polling for the condition to be true)
interesting
You can't even use is_state with number comparisons
{{ is_state('input_number.kitchen_exhaust_fan_speed','100') }}
returns false....
Wait for trigger using a template trigger works like any trigger. It will wait until it goes from false to true
So if it's already true it has to turn false first and then true again to trigger
wait_template doesn't have this caveat
That's because input_numbers always have at least 1 decimal number in their state, so this will work
{{ is_state('input_number.kitchen_exhaust_fan_speed','100.0') }}