Clear input_text in automation - how?

Hi,
I would like to clear the input_text value in an automation (in order to have a nicer history-graph).
I tried to leave the value blank in the automation

      - service: input_text.set_value
        data:
          value: 
        target:
          entity_id: input_text.text1

as well as to set the initial value in the configuration.yaml blank and then to use the input_text.reload-function:

      - service: input_text.reload
        data: {}

Both things did not work. Help would be appreciated. Thanks!

Specific an empty string. This will work unless the input_text was configured to accept a specific pattern that rejects it.

      - service: input_text.set_value
        data:
          value: ""
        target:
          entity_id: input_text.text1
1 Like

I could have sworn this was the first thing I tried. Nevertheless I tried it ‘again’ and now it works perfectly. Thanks a lot for the quick and correct answer! :slight_smile:

1 Like

This used to work flawlessly…for some reason it stopped working for me now.

…EDIT: I’ve pinpointed the reason: it’s refreshing the dashboard. It seems the solution above works as before and the field is emptied, but the empty text value is no longer automatically updating into the dashboard, but the screen needs to be refreshed in order to see the changed value. This is unfortunate and annoying, but not related to this thread.