diff --git a/homeassistant/components/starline/sensor.py b/homeassistant/components/starline/sensor.py index 603cceec222..1a43601940e 100644 --- a/homeassistant/components/starline/sensor.py +++ b/homeassistant/components/starline/sensor.py @@ -70,6 +70,12 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = ( device_class=SensorDeviceClass.DISTANCE, icon="mdi:counter", ), + SensorEntityDescription( + key="gps_count", + translation_key="gps_count", + icon="mdi:satellite-variant", + native_unit_of_measurement="satellites", + ), ) @@ -132,6 +138,8 @@ class StarlineSensor(StarlineEntity, SensorEntity): return self._device.errors.get("val") if self._key == "mileage" and self._device.mileage: return self._device.mileage.get("val") + if self._key == "gps_count" and self._device.position: + return self._device.position["sat_qty"] return None @property diff --git a/homeassistant/components/starline/strings.json b/homeassistant/components/starline/strings.json index 9631dbf7479..6f0c42f0882 100644 --- a/homeassistant/components/starline/strings.json +++ b/homeassistant/components/starline/strings.json @@ -99,6 +99,9 @@ }, "mileage": { "name": "Mileage" + }, + "gps_count": { + "name": "GPS satellites" } }, "switch": {