<!--
{
  "availability" : [
    "iOS: 8.0.0 - 16.4.0",
    "iPadOS: 8.0.0 - 16.4.0",
    "macCatalyst: 8.0.0 - 16.4.0",
    "tvOS: 10.0.0 - 16.4.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 2.0.0 - 9.4.0"
  ],
  "documentType" : "symbol",
  "framework" : "HomeKit",
  "identifier" : "/documentation/HomeKit/HMTimerTrigger/init(name:fireDate:timeZone:recurrence:recurrenceCalendar:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "HomeKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HMTimerTrigger(im)initWithName:fireDate:timeZone:recurrence:recurrenceCalendar:"
  },
  "title" : "init(name:fireDate:timeZone:recurrence:recurrenceCalendar:)"
}
-->

# init(name:fireDate:timeZone:recurrence:recurrenceCalendar:)

Initializes a timer trigger with specified timing information.

```
init(name: String, fireDate: Date, timeZone: TimeZone?, recurrence: DateComponents?, recurrenceCalendar: Calendar?)
```

## Parameters

`name`

The name of the timer trigger.

`fireDate`

The first fire date.

`timeZone`

The time zone for the first fire date. Pass `nil` to use the default time zone. See [`timeZone`](/documentation/HomeKit/HMTimerTrigger/timeZone) for a description of how the time zone is interpreted.

`recurrence`

The recurrence interval on which to fire the trigger. `nil` indicates a one-time trigger.

`recurrenceCalendar`

The calendar in which to evaluate the recurrence interval of a timer trigger. May be `nil`, in which case the current calendar <doc://com.apple.documentation/documentation/Foundation/NSCalendar/current> is used.

## Return Value

A newly-initialized timer trigger with the specified values.

## Discussion

A new timer trigger starts out disabled, and must be enabled using [`enable(_:completionHandler:)`](/documentation/HomeKit/HMTrigger/enable(_:completionHandler:)) before use.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)