ZoneTriggerControlStruct

struct ZoneTriggerControlStruct

Settings for controlling zone triggers.

  • Unique ZoneID of the zone.

    Declaration

    Swift

    let zoneID: UInt16
  • Indicates the initial duration in seconds after triggering activity is first detected before the Node could generate a ZoneStopped event.

    Declaration

    Swift

    let initialDuration: UInt32
  • Indicates the duration in seconds that the TriggerDetectedDuration value is to be extended by if the triggering activity is still detected during this period.

    Declaration

    Swift

    let augmentationDuration: UInt32
  • Indicates the maximum duration in seconds after the initial triggering activity detection that additional triggering activity will be detected.

    Declaration

    Swift

    let maxDuration: UInt32
  • Indicates the duration in seconds after a ZoneStopped event is generated that the Node shall not generate any ZoneTriggered events.

    Declaration

    Swift

    let blindDuration: UInt32
  • Indicates the per-zone sensitivity of the underlying zone triggering detection mechanism. The higher the value, the more sensitive the detection.

    Declaration

    Swift

    let sensitivity: UInt8?
  • Creates a new Struct instance using data read from the given TraitDecoder.

    Throws

    HomeError.parseError when parsing fails.

    Declaration

    Swift

    init(decoder: TraitDecoder) throws

    Parameters

    decoder

    The raw data representing this Struct.

  • Writes this Struct to the given TraitEncoder. Throws HomeError.parseError if the data could not be encoded.

    Declaration

    Swift

    func encode(with encoder: TraitEncoder) throws
  • Returns the field corresponding to the given field ID.

    Declaration

    Swift

    static func structField(id: UInt32) -> (any Field)?