Help with waste sensor code

who can help me? this code of a sensor to get the waste collected tomorrow does not work. I think it is a date problem. the similar sensor for today’s date works regularly. thanks.

- platform: template
  sensors:
    prossima_raccolta_rifiuti:
      friendly_name: "Raccolta Rifiuti di Domani"
      value_template: >
        {% set domani = (now() + timedelta(days=1)).date().isoformat() %}
        {% set evento = states.calendar.rifiuti_2.attributes %}
        {% if evento and evento.start_time and evento.start_time[:10] == oggi %}
          {{ evento.message }}
        {% else %}
          Nessuna
        {% endif %}
      icon_template: >
        {% set tipo = states('sensor.prossima_raccolta_rifiuti') | lower %}
        {% if tipo == 'non_reciclabile' %}
          mdi:trash-can
        {% elif tipo == 'plastica_e_metalli' %}
          mdi:recycle
        {% elif tipo == 'carta_e_cartone' %}
          mdi:file-document
        {% elif tipo == 'Organico' %}
          mdi:trash-can
        {% elif tipo == 'vetro' %}
          mdi:glass-fragile
        {% else %}
          mdi:delete-empty
        {% endif %}
      attribute_templates:
        image: >
          {% set immagini = {
            'non_reciclabile': '/api/image/serve/deb76a598e8247ad382ec360fb055158/512x512',
            'plastica_e_metalli': '/api/image/serve/64dcbed122dcb5a1e23bb0fd3623401c/512x512',
            'carta_e_cartone': '/api/image/serve/fa0a67c65083a1802318017da86aaa7c/512x512',
            'organico': '/api/image/serve/7a9f700ac0204d1cf0526a8f496f881d/512x512',
            'vetro': '/api/image/serve/19e0041f2a0b8f4ed24256884067e6e1/512x512'
          } %}
          {{ immagini.get(tipo, '/api/image/serve/19e0041f2a0b8f4ed24256884067e6e1/512x512') }}