Skip to content

ThinkingHome.DeviceModel.FluentApi

ThinkingHome.DeviceModel.FluentApi.Capabilities

ThermostatModeHandle Struct

Хендл способности «режим термостата/кондиционера» (ThermostatModeCapability).

csharp
public readonly struct ThermostatModeHandle

Methods

ThermostatModeHandle.DescribeAsync(CancellationToken) Method

Discovery: описание способности (поддерживаемые режимы) или null.

csharp
public System.Threading.Tasks.Task<ThinkingHome.DeviceModel.Capabilities.ThermostatModeCapability?> DescribeAsync(System.Threading.CancellationToken ct=default(System.Threading.CancellationToken));

Parameters

ct System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task<ThermostatModeCapability>

ThermostatModeHandle.GetAsync(CancellationToken) Method

Текущее значение или null, если способности/значения нет.

csharp
public System.Threading.Tasks.Task<System.Nullable<ThinkingHome.DeviceModel.ThermostatMode>> GetAsync(System.Threading.CancellationToken ct=default(System.Threading.CancellationToken));

Parameters

ct System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task<System.Nullable<ThermostatMode>>

ThermostatModeHandle.SetAsync(ThermostatMode, CancellationToken) Method

Установить режим. Способности нет → Unsupported.

csharp
public System.Threading.Tasks.Task<ThinkingHome.DeviceModel.CommandOutcome> SetAsync(ThinkingHome.DeviceModel.ThermostatMode value, System.Threading.CancellationToken ct=default(System.Threading.CancellationToken));

Parameters

value ThermostatMode

ct System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task<CommandOutcome>

Опубликовано под лицензией MIT