Using the value of a slider to trigger automation

Please don’t post pictures of code… Community Guideline #11

You don’t use templates in the above value, just use the entity ID of the input number:

above: input_number.target_layer


If you were trying to get the value elsewhere, you would need to use the states() function:

{{ states('input_number.target_layer') }}

1 Like