Help wanted for automation

Hi all,
I need to increase/decrease the temp for a terrarium based on the time of day.
I have an input_number that goes from 25 to 29 degrees and I need to change it dynamically with an automation.

I have this automation, for example:
alias: ‘Terrarium 17:00’
initial_state: ‘on’
trigger:
platform: time
at: ‘17:00’
action:
- service: input_number.select_value
data_template:
entity_id: input_number.terrarium
value: ‘{{ ((states.input_number.terrarium.state | int) - 1) }}’

I would expect that the value of input_number decrease at 17:00 but but this did not happen.
I also have an automation that turn on/off the terrarium heating based on the real temperature and the set temperature on input_select.

Any suggestion ?

Thanks
Alessandro

should be - service: input_number.set_value

Thanks @VDRainer, it was so simple but I did not think about it :relaxed: