Class FanModule
- Namespace
- KasaTapoClient
- Assembly
- KasaTapoClient.dll
Provides module-style access to fan state.
public sealed class FanModule
- Inheritance
-
FanModule
- Inherited Members
Properties
IsAvailable
Gets a value indicating whether fan state is currently available.
public bool IsAvailable { get; }
Property Value
IsOn
Gets whether the fan is on.
public bool? IsOn { get; }
Property Value
- bool?
State
Gets the latest fan state.
public FanState? State { get; }
Property Value
Methods
UpdateAsync(CancellationToken)
Refreshes fan state.
public Task UpdateAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken