---
title: HMCharacteristicTypeContactState
framework: homekit
role: symbol
role_heading: Global Variable
path: homekit/hmcharacteristictypecontactstate
---

# HMCharacteristicTypeContactState

The state of a contact sensor.

## Declaration

```swift
let HMCharacteristicTypeContactState: String
```

## Discussion

Discussion The corresponding value is one of the constants in the HMCharacteristicValueContactState enumeration.

## Topics

### Values

- [HMCharacteristicValueContactState](homekit/hmcharacteristicvaluecontactstate.md)

## See Also

### Power and switches

- [HMCharacteristicTypeBatteryLevel](homekit/hmcharacteristictypebatterylevel.md)
- [HMCharacteristicTypeChargingState](homekit/hmcharacteristictypechargingstate.md)
- [HMCharacteristicTypeOutletInUse](homekit/hmcharacteristictypeoutletinuse.md)
- [HMCharacteristicTypePowerState](homekit/hmcharacteristictypepowerstate.md)
- [HMCharacteristicTypeStatusLowBattery](homekit/hmcharacteristictypestatuslowbattery.md)
- [HMCharacteristicTypeOutputState](homekit/hmcharacteristictypeoutputstate.md)
- [HMCharacteristicTypeInputEvent](homekit/hmcharacteristictypeinputevent.md)
- [HMCharacteristicTypePowerModeSelection](homekit/hmcharacteristictypepowermodeselection.md)
