Using condition in trigger-based template


I’ve been giving a try to the new trigger-based template feature and it looks like it could avoid using automation + input_number to store the value. I would like to create a template sensor that follows the value of my pool’s temperature sensor unless the filtration is off (in which case the last measured temperature should be preserved). I could trigger this template on any value change on my “physical” temperature sensor, but then it seems there’s no condition available to prevent updating when filtration is off.

Am I missing something? Is there any better way to achieve this?


You are not missing anything, the trigger-based template is fairly bare-bones in this first release. Any workaround I can think of will be no less complex than your input_number automation.

Thanks a lot for confirming this. Is there a way to propose a feature request in case this makes sense for others?