First, to be available in the trigger block you need to set it up as a trigger variable:
trigger_variables:
input_numtest_state: !input input_numtest
Second, you have mashed up the states()
function and the state object method… just remove the .state
from the template:
for:
hours: 0
minutes: 0
seconds: "{{ states(input_numtest_state) }}"