Class ChildTemperatureSensorModule
- Namespace
- KasaTapoClient
- Assembly
- KasaTapoClient.dll
Provides typed temperature information for a child sensor device.
public sealed class ChildTemperatureSensorModule
- Inheritance
-
ChildTemperatureSensorModule
- Inherited Members
Properties
MaximumComfortTemperature
Gets the maximum comfort temperature, when reported.
public double? MaximumComfortTemperature { get; }
Property Value
MinimumComfortTemperature
Gets the minimum comfort temperature, when reported.
public double? MinimumComfortTemperature { get; }
Property Value
State
Gets the latest typed temperature state for the child device.
public ChildTemperatureSensorState? State { get; }
Property Value
Temperature
Gets the latest reported temperature value.
public double? Temperature { get; }
Property Value
Unit
Gets the reported temperature unit.
public string? Unit { get; }
Property Value
Warning
Gets whether the child device reports a temperature warning.
public bool? Warning { get; }
Property Value
- bool?
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.