I don’t use the GUI to create/edit automations, so can’t really say, but I would guess so. Basically you want to trigger every hour, and the action would be calling a service (i.e., input_number.set_value, with the data as has been discussed.)
If you enter it manually, it should look something like this:
automation:
- alias: Save temperature once an hour
trigger:
platform: time
minutes: 0
seconds: 0
action:
service: input_number.set_value
entity_id: input_number.hour_ago
data_template:
value: "{{ states('sensor.utomhus_temperature') }}"
The trigger will fire every hour on the hour (because the trigger matches when minutes and seconds are both zero, but the hour is not specified and so will match every hour.)
Now I realised that the GUI sucks for advanced use. I just unlocked a whole new world of automation by doing it the “matrix-way” in the yaml, everything works thanks to you! Many thanks from Sweden!