Table of Contents

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

bool

Sound

Gets the alarm sound.

public string? Sound { get; }

Property Value

string

Source

Gets the alarm source.

public string? Source { get; }

Property Value

string

State

Gets the latest alarm state.

public AlarmState? State { get; }

Property Value

AlarmState

Volume

Gets the alarm volume label.

public string? Volume { get; }

Property Value

string

Methods

UpdateAsync(CancellationToken)

Refreshes alarm state.

public Task UpdateAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task