Class UsageModule
- Namespace
- KasaTapoClient
- Assembly
- KasaTapoClient.dll
Provides module-style access to usage telemetry for a device.
public sealed class UsageModule
- Inheritance
-
UsageModule
- Inherited Members
Properties
CurrentPowerWatts
Gets the latest current power draw in watts.
public double? CurrentPowerWatts { get; }
Property Value
IsAvailable
Gets a value indicating whether usage telemetry is currently available.
public bool IsAvailable { get; }
Property Value
MonthKilowattHours
Gets this month's measured energy in kilowatt-hours.
public double? MonthKilowattHours { get; }
Property Value
State
Gets the latest usage snapshot.
public EnergyUsage? State { get; }
Property Value
TodayKilowattHours
Gets today's measured energy in kilowatt-hours.
public double? TodayKilowattHours { get; }
Property Value
TotalKilowattHours
Gets the latest total measured energy in kilowatt-hours.
public double? TotalKilowattHours { get; }
Property Value
Methods
UpdateAsync(CancellationToken)
Refreshes usage telemetry from the device.
public Task<bool> UpdateAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenThe cancellation token for the operation.