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
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
State
Gets the latest normalized auto-off state.
public AutoOffState? State { get; }
Property Value
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
cancellationTokenCancellationTokenThe cancellation token for the operation.
Returns
- Task
A task that completes when the device state has been refreshed.