How can I use an Automation to increment an input_number?

Hi, I’m trying to increment an input_number using an automation, I’ve looked at the docs here:

And I can’t find any ways of doing this, had anyone managed to pull this off?

Basically, automation triggered - input_number goes from 4 to 5 for example

1 Like
  action:
    service: input_number.set_value
    data_template:
      entity_id: input_number.entityID 
      value: '{{ (states.input_number.entityID.state | int ) + 1 }}'
3 Likes

Thanks that worked perfectly :slight_smile: