Table of Contents

Class ChildWaterLeakSensorModule

Namespace
KasaTapoClient
Assembly
KasaTapoClient.dll

Provides typed water leak information for a child sensor device.

public sealed class ChildWaterLeakSensorModule
Inheritance
ChildWaterLeakSensorModule
Inherited Members

Properties

Alert

Gets whether the child device currently reports an active alert.

public bool? Alert { get; }

Property Value

bool?

AlertTimestamp

Gets the latest reported alert timestamp, when available.

public long? AlertTimestamp { get; }

Property Value

long?

State

Gets the latest typed water leak state for the child device.

public ChildWaterLeakSensorState? State { get; }

Property Value

ChildWaterLeakSensorState

Status

Gets the latest reported water leak status string.

public string? Status { get; }

Property Value

string

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.