Table of Contents

Class LedModule

Namespace
KasaTapoClient
Assembly
KasaTapoClient.dll

Provides module-style access to LED state information.

public sealed class LedModule
Inheritance
LedModule
Inherited Members

Properties

Enabled

Gets whether the device LED is enabled.

public bool? Enabled { get; }

Property Value

bool?

IsAvailable

Gets a value indicating whether LED state is currently available.

public bool IsAvailable { get; }

Property Value

bool

Mode

Gets the LED mode string.

public string? Mode { get; }

Property Value

string

NightModeSettings

Gets the LED night-mode settings, when reported.

public LedNightModeSettings? NightModeSettings { get; }

Property Value

LedNightModeSettings

State

Gets the latest normalized LED state.

public LedState? State { get; }

Property Value

LedState

Methods

UpdateAsync(CancellationToken)

Refreshes LED-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.