Table of Contents

Class ChildDevice

Namespace
KasaTapoClient
Assembly
KasaTapoClient.dll

Provides a child-device wrapper with delegated parent commands.

public sealed class ChildDevice
Inheritance
ChildDevice
Inherited Members

Properties

Alias

Gets the latest child alias.

public string? Alias { get; }

Property Value

string

Battery

Gets battery information for child sensor devices.

public ChildBatterySensorModule Battery { get; }

Property Value

ChildBatterySensorModule

ChildProtection

Gets child-protection information for child thermostat devices.

public ChildProtectionModule ChildProtection { get; }

Property Value

ChildProtectionModule

Contact

Gets contact/open information for child contact sensors.

public ChildContactSensorModule Contact { get; }

Property Value

ChildContactSensorModule

DeviceType

Gets the latest child device family.

public DeviceType DeviceType { get; }

Property Value

DeviceType

DoubleClick

Gets double-click information for child button devices.

public ChildDoubleClickModule DoubleClick { get; }

Property Value

ChildDoubleClickModule

Features

Gets the latest child features.

public IReadOnlyList<DeviceFeature> Features { get; }

Property Value

IReadOnlyList<DeviceFeature>

FrostProtection

Gets frost-protection information for child thermostat devices.

public ChildFrostProtectionModule FrostProtection { get; }

Property Value

ChildFrostProtectionModule

Humidity

Gets humidity information for child environmental sensors.

public ChildHumiditySensorModule Humidity { get; }

Property Value

ChildHumiditySensorModule

Id

Gets the child device identifier.

public string Id { get; }

Property Value

string

Info

Gets the latest child device snapshot.

public ChildDeviceInfo? Info { get; }

Property Value

ChildDeviceInfo

IsOn

Gets the latest child power state.

public bool? IsOn { get; }

Property Value

bool?

Model

Gets the latest child model.

public string? Model { get; }

Property Value

string

Motion

Gets motion state information for child motion sensors.

public ChildMotionSensorModule Motion { get; }

Property Value

ChildMotionSensorModule

ReportMode

Gets report-mode information for child environmental sensors.

public ChildReportModeModule ReportMode { get; }

Property Value

ChildReportModeModule

Temperature

Gets temperature information for child environmental sensors.

public ChildTemperatureSensorModule Temperature { get; }

Property Value

ChildTemperatureSensorModule

TemperatureControl

Gets temperature-control information for child thermostat devices.

public ChildTemperatureControlModule TemperatureControl { get; }

Property Value

ChildTemperatureControlModule

Thermostat

Gets aggregated thermostat information for child thermostat devices.

public ChildThermostatModule Thermostat { get; }

Property Value

ChildThermostatModule

TriggerLogs

Gets trigger-log information for event-driven child devices.

public ChildTriggerLogModule TriggerLogs { get; }

Property Value

ChildTriggerLogModule

WaterLeak

Gets water leak information for child water leak sensors.

public ChildWaterLeakSensorModule WaterLeak { get; }

Property Value

ChildWaterLeakSensorModule

Methods

TurnOffAsync(CancellationToken)

Turns the child device off.

public Task TurnOffAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The cancellation token for the operation.

Returns

Task

A task that completes when the child device and parent state have been refreshed.

TurnOnAsync(CancellationToken)

Turns the child device on.

public Task TurnOnAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The cancellation token for the operation.

Returns

Task

A task that completes when the child device and parent state have been refreshed.

UpdateAsync(CancellationToken)

Refreshes the parent device state.

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.