ThinkingHome.DeviceModel
ThinkingHome.DeviceModel.State
ContactState Class
Текущее состояние контакта датчика открытия (instance "contact"). Семантика Matter: true — контакт замкнут (закрыто).
csharp
public sealed record ContactState : ThinkingHome.DeviceModel.State.StateValue, System.IEquatable<ThinkingHome.DeviceModel.State.ContactState>Inheritance System.Object → StateValue → ContactState
Implements System.IEquatable<ContactState>
Properties
ContactState.Value Property
Контакт замкнут (семантика Matter: true — закрыто).
csharp
public bool Value { get; init; }