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
Mode
Gets the LED mode string.
public string? Mode { get; }
Property Value
NightModeSettings
Gets the LED night-mode settings, when reported.
public LedNightModeSettings? NightModeSettings { get; }
Property Value
State
Gets the latest normalized LED state.
public LedState? State { get; }
Property Value
Methods
UpdateAsync(CancellationToken)
Refreshes LED-related state.
public Task UpdateAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenThe cancellation token for the operation.
Returns
- Task
A task that completes when the device state has been refreshed.