diff --git a/custom_components/owlet/manifest.json b/custom_components/owlet/manifest.json index 11ba518..4463f3a 100644 --- a/custom_components/owlet/manifest.json +++ b/custom_components/owlet/manifest.json @@ -10,7 +10,7 @@ "homekit": {}, "iot_class": "cloud_polling", "requirements": [ - "pyowletapi==2023.5.17" + "pyowletapi==2023.5.18" ], - "version":"1.2.0" + "version":"1.3.0" } diff --git a/custom_components/owlet/sensor.py b/custom_components/owlet/sensor.py index a10a72d..0cf52e8 100644 --- a/custom_components/owlet/sensor.py +++ b/custom_components/owlet/sensor.py @@ -15,6 +15,7 @@ from homeassistant.const import ( PERCENTAGE, SIGNAL_STRENGTH_DECIBELS_MILLIWATT, UnitOfTime, + UnitOfTemperature, ) from .const import DOMAIN @@ -53,6 +54,14 @@ SENSORS: tuple[OwletSensorEntityDescription, ...] = ( element="oxygen_saturation", icon="mdi:leaf", ), + OwletSensorEntityDescription( + key="oxygensaturation10a", + name="O2 Saturation 10 Minute Average", + native_unit_of_measurement=PERCENTAGE, + state_class=SensorStateClass.MEASUREMENT, + element="oxygen_10_av", + icon="mdi:leaf", + ), OwletSensorEntityDescription( key="heartrate", name="Heart rate", @@ -77,6 +86,14 @@ SENSORS: tuple[OwletSensorEntityDescription, ...] = ( state_class=SensorStateClass.MEASUREMENT, element="signal_strength", ), + OwletSensorEntityDescription( + key="skintemp", + name="Skin Temperature", + native_unit_of_measurement=UnitOfTemperature.CELCIUS, + device_class=SensorDeviceClass.TEMPERATURE, + state_class=SensorStateClass.MEASUREMENT, + element="skin_temperature", + ), ) @@ -119,6 +136,8 @@ class OwletSensor(OwletBaseEntity, SensorEntity): "heart_rate", "battery_minutes", "oxygen_saturation", + "skin_temperature", + "oxygen_10_av" ] and self.sock.properties["charging"] ):