SafetyStatus

struct SafetyStatus

Reflects the state of the safety sensors and the common issues preventing movements.

  • The corresponding value of the raw type.

    A new instance initialized with rawValue will be equivalent to this instance. For example:

    enum PaperSize: String {
        case A4, A5, Letter, Legal
    }
    
    let selectedSize = PaperSize.Letter
    print(selectedSize.rawValue)
    // Prints "Letter"
    
    print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!)
    // Prints "true"
    

    Declaration

    Swift

    let rawValue: UInt16
  • Creates a new option set from the given raw value.

    This initializer always succeeds, even if the value passed as rawValue exceeds the static properties declared as part of the option set. This example creates an instance of ShippingOptions with a raw value beyond the highest element, with a bit mask that effectively contains all the declared static members.

    let extraOptions = ShippingOptions(rawValue: 255)
    print(extraOptions.isStrictSuperset(of: .all))
    // Prints "true"
    

    Declaration

    Swift

    init(rawValue: UInt16)

    Parameters

    rawValue

    The raw value of the option set to create. Each bit of rawValue potentially represents an element of the option set, though raw values may include bits that are not defined as distinct values of the OptionSet type.

  • Movement commands are ignored outside some time-and-date range.

    Declaration

    Swift

    static let remoteLockout: Matter.WindowCoveringTrait.SafetyStatus
  • Tampering detected on sensors or other safety equipment.

    Declaration

    Swift

    static let tamperDetection: Matter.WindowCoveringTrait.SafetyStatus
  • Communication failure to sensors or other safety equipment.

    Declaration

    Swift

    static let failedCommunication: Matter.WindowCoveringTrait.SafetyStatus
  • Device failed to reach the desired position.

    Declaration

    Swift

    static let positionFailure: Matter.WindowCoveringTrait.SafetyStatus
  • Motor(s) and/or electric circuit thermal protection activated.

    Declaration

    Swift

    static let thermalProtection: Matter.WindowCoveringTrait.SafetyStatus
  • An obstacle is preventing actuator movement.

    Declaration

    Swift

    static let obstacleDetected: Matter.WindowCoveringTrait.SafetyStatus
  • Device has a power-related issue or limitation.

    Declaration

    Swift

    static let power: Matter.WindowCoveringTrait.SafetyStatus
  • Local safety sensor is preventing movements (for example Safety EU Standard EN60335).

    Declaration

    Swift

    static let stopInput: Matter.WindowCoveringTrait.SafetyStatus
  • Mechanical problem related to the motor(s) detected.

    Declaration

    Swift

    static let motorJammed: Matter.WindowCoveringTrait.SafetyStatus
  • PCB, fuse and other electrics problems.

    Declaration

    Swift

    static let hardwareFailure: Matter.WindowCoveringTrait.SafetyStatus
  • The actuator is manually operated and is preventing actuator movement (for example, the actuator is disengaged or decoupled).

    Declaration

    Swift

    static let manualOperation: Matter.WindowCoveringTrait.SafetyStatus
  • Protection is activated.

    Declaration

    Swift

    static let protection: Matter.WindowCoveringTrait.SafetyStatus