struct TransportMotionTriggerTimeControlStructDefines parameters for controlling the timing of a transport stream triggered by motion.
-
The initial length of the stream after a motion trigger, in seconds.
Declaration
Swift
let initialDuration: UInt16 -
How much the stream duration can be extended, in seconds.
Declaration
Swift
let augmentationDuration: UInt16 -
The maximum total duration the stream can run, in seconds.
Declaration
Swift
let maxDuration: UInt32 -
A period during which new motion triggers are ignored after an event, in seconds.
Declaration
Swift
let blindDuration: UInt16 -
Creates a new Struct instance using data read from the given
TraitDecoder.Throws
HomeError.parseErrorwhen parsing fails.Declaration
Swift
init(decoder: TraitDecoder) throwsParameters
decoderThe raw data representing this Struct.
-
Writes this Struct to the given
TraitEncoder. ThrowsHomeError.parseErrorif 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)?