Class EnergyModule
- Namespace
- KasaTapoClient
- Assembly
- KasaTapoClient.dll
Provides module-style access to energy telemetry for a device.
public sealed class EnergyModule
- Inheritance
-
EnergyModule
- Inherited Members
Properties
CurrentAmps
Gets the latest current draw in amps.
public double? CurrentAmps { get; }
Property Value
CurrentPowerWatts
Gets the latest current power draw in watts.
public double? CurrentPowerWatts { get; }
Property Value
IsAvailable
Gets a value indicating whether energy 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
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
Usage
Gets the latest energy usage snapshot.
public EnergyUsage? Usage { get; }
Property Value
VoltageVolts
Gets the latest line voltage in volts.
public double? VoltageVolts { get; }
Property Value
Methods
UpdateAsync(CancellationToken)
Refreshes energy telemetry from the device.
public Task<bool> UpdateAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenThe cancellation token for the operation.