Class AcEnergyTracker
- Namespace
- PanasonicComfortCloudClient
- Assembly
- PanasonicComfortCloudClient.dll
Derives AC power from cumulative daily consumption using the upstream reset, clamp and stale-value rules.
public sealed class AcEnergyTracker
- Inheritance
-
AcEnergyTracker
- Inherited Members
Remarks
This application-owned tracker performs no polling or storage. Updates and individual property reads are synchronized, including multiword nullable values on 32-bit runtimes. Give it chronological observations from one device. Multiple property reads are separate observations, not one aggregate transaction. Missing readings remain unknown.
Fields
MAXIMUM_POWER_WATTS
Gets the maximum inferred power used by the Python reference.
public const double MAXIMUM_POWER_WATTS = 5000
Field Value
- double
Five thousand watts.
Properties
Consumption
Gets the last accepted cumulative consumption.
public double? Consumption { get; }
Property Value
- double?
Daily kWh, or null before a valid observation.
CoolingConsumption
Gets inferred cooling consumption.
public double? CoolingConsumption { get; }
Property Value
- double?
Cumulative daily cooling kWh, or null when unknown.
CoolingPowerWatts
Gets inferred cooling power.
public double? CoolingPowerWatts { get; }
Property Value
- double?
Cooling watts with the same clamp and stale-value rules.
CoolingRatio
Gets the last accepted cooling fraction.
public double? CoolingRatio { get; }
Property Value
- double?
The reported fraction, or null when unknown.
HeatingConsumption
Gets inferred heating consumption.
public double? HeatingConsumption { get; }
Property Value
- double?
Cumulative daily heating kWh, or null when unknown.
HeatingPowerWatts
Gets inferred heating power.
public double? HeatingPowerWatts { get; }
Property Value
- double?
Heating watts with the same clamp and stale-value rules.
HeatingRatio
Gets the last accepted heating fraction.
public double? HeatingRatio { get; }
Property Value
- double?
The reported fraction, or null when unknown.
PowerWatts
Gets inferred total power.
public double? PowerWatts { get; }
Property Value
- double?
Watts between consumption changes, null before a usable interval, or zero after 25 unchanged minutes.
Methods
Update(AcEnergyHistoryEntry, DateTimeOffset)
Applies one chronological sample; resets in a daily counter count the new counter as the interval increment.
public bool Update(AcEnergyHistoryEntry sample, DateTimeOffset observedAt)
Parameters
sampleAcEnergyHistoryEntryThe sample from one AC's daily history entry.
observedAtDateTimeOffsetThe observation instant, supplied by the application for reproducible timing.
Returns
- bool
True if an accepted reading or derived output changed.