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
Battery
Gets battery information for child sensor devices.
public ChildBatterySensorModule Battery { get; }
Property Value
ChildProtection
Gets child-protection information for child thermostat devices.
public ChildProtectionModule ChildProtection { get; }
Property Value
Contact
Gets contact/open information for child contact sensors.
public ChildContactSensorModule Contact { get; }
Property Value
DeviceType
Gets the latest child device family.
public DeviceType DeviceType { get; }
Property Value
DoubleClick
Gets double-click information for child button devices.
public ChildDoubleClickModule DoubleClick { get; }
Property Value
Features
Gets the latest child features.
public IReadOnlyList<DeviceFeature> Features { get; }
Property Value
FrostProtection
Gets frost-protection information for child thermostat devices.
public ChildFrostProtectionModule FrostProtection { get; }
Property Value
Humidity
Gets humidity information for child environmental sensors.
public ChildHumiditySensorModule Humidity { get; }
Property Value
Id
Gets the child device identifier.
public string Id { get; }
Property Value
Info
Gets the latest child device snapshot.
public ChildDeviceInfo? Info { get; }
Property Value
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
Motion
Gets motion state information for child motion sensors.
public ChildMotionSensorModule Motion { get; }
Property Value
ReportMode
Gets report-mode information for child environmental sensors.
public ChildReportModeModule ReportMode { get; }
Property Value
Temperature
Gets temperature information for child environmental sensors.
public ChildTemperatureSensorModule Temperature { get; }
Property Value
TemperatureControl
Gets temperature-control information for child thermostat devices.
public ChildTemperatureControlModule TemperatureControl { get; }
Property Value
Thermostat
Gets aggregated thermostat information for child thermostat devices.
public ChildThermostatModule Thermostat { get; }
Property Value
TriggerLogs
Gets trigger-log information for event-driven child devices.
public ChildTriggerLogModule TriggerLogs { get; }
Property Value
WaterLeak
Gets water leak information for child water leak sensors.
public ChildWaterLeakSensorModule WaterLeak { get; }
Property Value
Methods
TurnOffAsync(CancellationToken)
Turns the child device off.
public Task TurnOffAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenThe 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
cancellationTokenCancellationTokenThe 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
cancellationTokenCancellationTokenThe cancellation token for the operation.
Returns
- Task
A task that completes when the parent device state has been refreshed.