Table of Contents

Class PowerProtectionModule

Namespace
KasaTapoClient
Assembly
KasaTapoClient.dll

Provides module-style access to power protection state.

public sealed class PowerProtectionModule
Inheritance
PowerProtectionModule
Inherited Members

Properties

IsAvailable

Gets a value indicating whether power protection state is currently available.

public bool IsAvailable { get; }

Property Value

bool

ProtectionActive

Gets whether power protection is active.

public bool? ProtectionActive { get; }

Property Value

bool?

State

Gets the latest power protection state.

public PowerProtectionState? State { get; }

Property Value

PowerProtectionState

Methods

UpdateAsync(CancellationToken)

Refreshes power protection state.

public Task UpdateAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task