Class ChildTemperatureControlModule
- Namespace
- KasaTapoClient
- Assembly
- KasaTapoClient.dll
Provides typed temperature-control information for a child thermostat device.
public sealed class ChildTemperatureControlModule
- Inheritance
-
ChildTemperatureControlModule
- Inherited Members
Properties
Enabled
Gets whether temperature control is enabled.
public bool? Enabled { get; }
Property Value
- bool?
MaximumTargetTemperature
Gets the maximum supported target temperature, when reported.
public int? MaximumTargetTemperature { get; }
Property Value
- int?
MinimumTargetTemperature
Gets the minimum supported target temperature, when reported.
public int? MinimumTargetTemperature { get; }
Property Value
- int?
State
Gets the latest typed temperature-control state for the child device.
public ChildTemperatureControlState? State { get; }
Property Value
States
Gets the raw TRV state flags reported by the device.
public IReadOnlyList<string> States { get; }
Property Value
TargetTemperature
Gets the target temperature, when reported.
public double? TargetTemperature { get; }
Property Value
TemperatureOffset
Gets the temperature offset, when reported.
public int? TemperatureOffset { get; }
Property Value
- int?
Methods
UpdateAsync(CancellationToken)
Refreshes the parent device state and child module data.
public Task UpdateAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenThe cancellation token for the operation.
Returns
- Task
A task that completes when the parent device state has been refreshed.