diff --git a/mill/__init__.py b/mill/__init__.py index c7567b8..3fe90db 100644 --- a/mill/__init__.py +++ b/mill/__init__.py @@ -507,11 +507,16 @@ def __post_init__(self) -> None: """Post init.""" if self.data: last_metrics = self.data.get("lastMetrics", {}) + device_settings_desired = self.data.get("deviceSettings", {}).get( + "desired", {} + ) if last_metrics is not None: self.current_temp = last_metrics.get("temperatureAmbient") self.is_heating = last_metrics.get("heaterFlag", 0) > 0 self.power_status = last_metrics.get("powerStatus", 0) > 0 - self.set_temp = last_metrics.get("temperature") + self.set_temp = device_settings_desired.get( + "temperature_normal", last_metrics.get("temperature") + ) self.open_window = WINDOW_STATES.get( last_metrics.get("openWindowsStatus") )