Dev tools lists time_pattern as an invalid trigger in templates

I’m trying to create a new template sensor to get today’s calendar events and use the count of them for the state, along with an attribute for the array itself. I noticed when I used dev tools to check the yaml configurations before I rebooted, that it now gives the error below. I figured maybe something was wrong with my new template, so I deleted it, saved, and checked the dev tools again, but now it seems other templates that had been running just fine with time_pattern triggers are also an issue now. Anyone know if something changed recently? I’m running 2025.3.2 now. Noticed issue starting with 2025.3.1 earlier today.

Platform error ‘sensor’ from integration ‘time_pattern’ - Integration ‘time_pattern’ not found.

ETA: new template is below with simple test data for now if it helps at all

  - trigger:
      - platform: template
        value_template: "{{ now().minute % 30 == 0 }}"
      - platform: homeassistant
        event: start
      - platform: time_pattern
        hours: /1
    action: 
      - service: calendar.get_events
        target:
          entity_id: calendar.family
        data:
          start_date_time: "{{ now().strftime('%Y-%m-%d 00:00:00') }}"
          end_date_time: "{{ (now() + timedelta(days=1)).strftime('%Y-%m-%d 00:00:00') }}"
        response_variable: family_events
    sensor:
      - name: Family Events Today
        state: "test"
        attributes:
          all_events: "test data"
1 Like

Hello Chris,

Please share your yaml code.
The answer to that question is likely to be maybe.
Use the </> button or this:
Here is an example of how to fix it from the site FAQ Page.
How to help us help you - or How to ask a good question.

Already done, thanks

1 Like

I don’t use that much, buy my observation is that the docs puts a quote around that. I don’t see it / where it says if you can use these there or not.

I just needed to post here to figure it out I guess. New and existing template time_pattern triggers were all fine. I just forgot I had started earlier today testing a similar trigger in another sensors.yaml file.

Try using the new syntax:

  - trigger:
      - trigger: template
        value_template: "{{ now().minute % 30 == 0 }}"
      - trigger: homeassistant
        event: start
      - trigger: time_pattern
        hours: "/1"
    action: 
      - action: calendar.get_events
        target:
          entity_id: calendar.family
        data:
          start_date_time: "{{ now().strftime('%Y-%m-%d 00:00:00') }}"
          end_date_time: "{{ (now() + timedelta(days=1)).strftime('%Y-%m-%d 00:00:00') }}"
        response_variable: family_events
    sensor:
      - name: Family Events Today
        state: "test"
        attributes:
          all_events: "test data"