Speedtest.net sensor reset before a speed test

Hi. I would like to reset to 0 the values of the speedtest integration’s sensors before performing a new test. Since I do only manual tests, every time I have to go to the developers tools->states and manually set the state of the three sensors to 0.
I have read that topic in the forum but, sincerely, I didn’t understand what should I do.
Could you help me please?
Thanks in advance!

off top of head

why set to 0 it get over written each time

as it a sensor you need to change the state of it so

Continuing the discussion from How to manually set state/value of sensor?:

the action wood be

  action:
  - service: python_script.set_state
    data_template:
      entity_id: sensor.speedtest_download
      state: '0'
  - service: python_script.set_state
    data_template:
      entity_id: sensor.speedtest_ping
      state: '0'
  - service: python_script.set_state
    data_template:
      entity_id: sensor.speedtest_source
      state: 'Speed test set to 0'

not been tested but should work as the logic is right.