Help needed with an automation

Is there someone who can help out a copy/paste programmer.
I like to get a notification when the sensor.dar_morgen has the state ‘pmd’ and ‘restafval’.
The same automation with one state is working fine but I don’t get it right when the sensor
has two state values.

- alias: rest_plastic_waarschuwing
    initial_state: 'on'
      platform: time_pattern
      hours: 17 
      minutes: 30
      seconds: 0
       condition: and
         - condition: template
           value_template: "{{ states('sensor.dar_morgen') == 'restafval' }}"
         - condition: template
           value_template: "{{ states('sensor.dar_morgen') == 'pmd' }}"  
    - service: notify.telegram
        message: "[INFO] Niet vergeten morgen de Grijze Kliko en het Plastic buiten te zetten!"
            - file: "/config/www/restplastic.jpg"
              caption: "Morgen moet de Grijze Kliko en het Plastic aan de straat"

Your condition part can not be true.

You want the automation been triggered at 17:30 and executed only when sensor dar_morgen is restavala OR pmd?

Replace the AND in your code with OR might do the trick.

I’ll will give it a try.Thanks