Class AlarmModule
- Namespace
- KasaTapoClient
- Assembly
- KasaTapoClient.dll
Provides module-style access to device alarm state.
public sealed class AlarmModule
- Inheritance
-
AlarmModule
- Inherited Members
Properties
DurationSeconds
Gets the alarm duration in seconds.
public int? DurationSeconds { get; }
Property Value
- int?
IsActive
Gets whether the alarm is active.
public bool? IsActive { get; }
Property Value
- bool?
IsAvailable
Gets a value indicating whether alarm state is currently available.
public bool IsAvailable { get; }
Property Value
Sound
Gets the alarm sound.
public string? Sound { get; }
Property Value
Source
Gets the alarm source.
public string? Source { get; }
Property Value
State
Gets the latest alarm state.
public AlarmState? State { get; }
Property Value
Volume
Gets the alarm volume label.
public string? Volume { get; }
Property Value
Methods
UpdateAsync(CancellationToken)
Refreshes alarm state.
public Task UpdateAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken