Table of Contents

Method GetSleepTimerAsync

Namespace
Yeelight
Assembly
YeelightClient.dll

GetSleepTimerAsync(CancellationToken)

Gets the sleep timer of the device.

public Task<TimeSpan?> GetSleepTimerAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

To stop waiting for the answer.

Returns

Task<TimeSpan?>

The length of the timer, or null when the device has none.

Exceptions

YeelightException

The command did not succeed.