Class ChildMotionSensorModule
- Namespace
- KasaTapoClient
- Assembly
- KasaTapoClient.dll
Provides typed motion sensor information for a child device.
public sealed class ChildMotionSensorModule
- Inheritance
-
ChildMotionSensorModule
- Inherited Members
Properties
MotionDetected
Gets whether motion is currently detected.
public bool? MotionDetected { get; }
Property Value
- bool?
State
Gets the latest typed motion sensor state for the child device.
public ChildMotionSensorState? State { get; }
Property Value
Methods
UpdateAsync(CancellationToken)
Refreshes the parent device state and child module data.
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.