Table of Contents

Class AutoOffModule

Namespace
KasaTapoClient
Assembly
KasaTapoClient.dll

Provides module-style access to auto-off configuration and timer state.

public sealed class AutoOffModule
Inheritance
AutoOffModule
Inherited Members

Properties

AutoOffAt

Gets the expected automatic shutoff time.

public DateTime? AutoOffAt { get; }

Property Value

DateTime?

DelayMinutes

Gets the configured auto-off delay in minutes.

public int? DelayMinutes { get; }

Property Value

int?

Enabled

Gets whether auto-off is enabled.

public bool? Enabled { get; }

Property Value

bool?

IsAvailable

Gets a value indicating whether auto-off state is currently available.

public bool IsAvailable { get; }

Property Value

bool

State

Gets the latest normalized auto-off state.

public AutoOffState? State { get; }

Property Value

AutoOffState

TimerActive

Gets whether an auto-off timer is currently active.

public bool? TimerActive { get; }

Property Value

bool?

Methods

UpdateAsync(CancellationToken)

Refreshes auto-off-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.