diff --git a/custom_components/polestar_api/sensor.py b/custom_components/polestar_api/sensor.py index 847d526..31b293d 100644 --- a/custom_components/polestar_api/sensor.py +++ b/custom_components/polestar_api/sensor.py @@ -78,6 +78,16 @@ class PolestarSensorDescription( state_class=SensorStateClass.MEASUREMENT, device_class=SensorDeviceClass.BATTERY, ), + PolestarSensorDescription( + key="last_updated", + name="Last updated", + path="{vin}/recharge-status", + response_path="batteryChargeLevel.timestamp", + unit=None, + round_digits=None, + state_class=SensorStateClass.MEASUREMENT, + device_class=SensorDeviceClass.TIMESTAMP, + ), PolestarSensorDescription( key="electric_range", name="EV Range",