Class ChildBatterySensorModule
- Namespace
- KasaTapoClient
- Assembly
- KasaTapoClient.dll
Provides typed battery information for a child sensor device.
public sealed class ChildBatterySensorModule
- Inheritance
-
ChildBatterySensorModule
- Inherited Members
Properties
BatteryLevel
Gets the latest battery level percentage, when reported.
public int? BatteryLevel { get; }
Property Value
- int?
BatteryLow
Gets whether the child device reports a low battery condition.
public bool? BatteryLow { get; }
Property Value
- bool?
State
Gets the latest typed battery state for the child device.
public ChildBatterySensorState? 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.