Letsencrypt certificates autorenew

Just noted that my certificate expired; i.e. it was not renewed automatically.

Any help how this can be done? I have the addon Letsencrpt installed and the following automation which apparently is not working:

- id: letsencrypt-renewal
  alias: Let's Encrypt Renewal
  - platform: time
    at: 00:00:00
  - service: hassio.addon_restart
      addon: core_letsencrypt

As a sidenote to renew the certificates I had to delete the letsencrypt folder as per below

cd /usr/share/hassio/addons/data/core_letsencrypt
mv letsencrypt/ letsencrypt_backup (to delete and backup letsencrypt folder)

and reload HA.

Any ideas why the automation is not working?