Class ChildThermostatModule
- Namespace
- KasaTapoClient
- Assembly
- KasaTapoClient.dll
Provides aggregated thermostat information for a child thermostat device.
public sealed class ChildThermostatModule
- Inheritance
-
ChildThermostatModule
- Inherited Members
Properties
CurrentTemperature
Gets the current measured temperature, when reported.
public double? CurrentTemperature { get; }
Property Value
Enabled
Gets whether the thermostat is enabled.
public bool? Enabled { get; }
Property Value
- bool?
State
Gets the latest typed thermostat state for the child device.
public ChildThermostatState? 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
Unit
Gets the reported temperature unit.
public string? Unit { get; }
Property Value
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.