Table of Contents

Class CountdownModule

Namespace
KasaTapoClient
Assembly
KasaTapoClient.dll

Provides module-style access to the countdown timer state.

public sealed class CountdownModule
Inheritance
CountdownModule
Inherited Members

Properties

ActionTurnsOn

Gets a value indicating whether the countdown action turns the device on.

public bool? ActionTurnsOn { get; }

Property Value

bool?

DelaySeconds

Gets the configured countdown delay in seconds.

public int? DelaySeconds { get; }

Property Value

int?

IsActive

Gets a value indicating whether a countdown is currently active.

public bool? IsActive { get; }

Property Value

bool?

IsAvailable

Gets a value indicating whether countdown state is currently available.

public bool IsAvailable { get; }

Property Value

bool

IsEnabled

Gets a value indicating whether the countdown feature is enabled.

public bool? IsEnabled { get; }

Property Value

bool?

State

Gets the latest normalized countdown timer state.

public CountdownRuleState? State { get; }

Property Value

CountdownRuleState

Methods

UpdateAsync(CancellationToken)

Refreshes countdown-related state.

public Task UpdateAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The cancellation token for the operation.

Returns

Task

A task that completes when the device state has been refreshed.