<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 8.0.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HomeKit",
  "identifier" : "/documentation/HomeKit/HMCharacteristicTypeTargetLockMechanismState",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "HomeKit"
    ],
    "preciseIdentifier" : "c:@HMCharacteristicTypeTargetLockMechanismState"
  },
  "title" : "HMCharacteristicTypeTargetLockMechanismState"
}
-->

# HMCharacteristicTypeTargetLockMechanismState

The target state for the locking mechanism.

```
let HMCharacteristicTypeTargetLockMechanismState: String
```

## Discussion

The corresponding value is one of the constants in the [`HMCharacteristicValueLockMechanismState`](/documentation/HomeKit/HMCharacteristicValueLockMechanismState) enumeration.

## Topics

### Values

[`HMCharacteristicValueLockMechanismState`](/documentation/HomeKit/HMCharacteristicValueLockMechanismState)

Possible values for the state of a lock mechanism.

[`HMCharacteristicValueTargetLockMechanismState`](/documentation/HomeKit/HMCharacteristicValueTargetLockMechanismState)

Values that indicate the state of a locking device.



---

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)