Table of Contents

Class ChildContactSensorModule

Namespace
KasaTapoClient
Assembly
KasaTapoClient.dll

Provides typed contact sensor information for a child device.

public sealed class ChildContactSensorModule
Inheritance
ChildContactSensorModule
Inherited Members

Properties

IsOpen

Gets whether the contact sensor is currently open.

public bool? IsOpen { get; }

Property Value

bool?

State

Gets the latest typed contact sensor state for the child device.

public ChildContactSensorState? State { get; }

Property Value

ChildContactSensorState

Methods

UpdateAsync(CancellationToken)

Refreshes the parent device state and child module data.

public Task UpdateAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The cancellation token for the operation.

Returns

Task

A task that completes when the parent device state has been refreshed.