Trigger every 15 minutes

The below code isn’t working. I need to remind me the to take the garbage every 15 minutes between a given time period…

Can you suggest a fix please?

##Don't forget the garbage
- id: Don't forget the garbage
  alias: Don't forget the garbage
    platform: time_pattern
    minutes: '/15'
    condition: time
    after: '18:40:00'
    before: '18:59:00'
    - service: tts.google_translate_say
      entity_id: media_player.living_room_speaker
        message: "Don't forget the garbage"

Remove the hours: and seconds: lines. Also, that’s only a 19 minute window. If it’s triggering every 15 minutes, it might only trigger once during that period. (In fact, it might only trigger at 18:45:00, so this might just be equivalent to a corresponding time trigger.) Are you sure this is what you want?

1 Like

Thanks.i removed the hours and the seconds and it worked. The actual time will be in the morning. In the example was just for testing reasons