diff --git a/homeassistant/components/alexa_devices/icons.json b/homeassistant/components/alexa_devices/icons.json index 3de5e5faf6c..fecc2342d7a 100644 --- a/homeassistant/components/alexa_devices/icons.json +++ b/homeassistant/components/alexa_devices/icons.json @@ -1,4 +1,11 @@ { + "entity": { + "sensor": { + "voc_index": { + "default": "mdi:molecule" + } + } + }, "services": { "send_info_skill": { "service": "mdi:information" diff --git a/homeassistant/components/alexa_devices/sensor.py b/homeassistant/components/alexa_devices/sensor.py index e71c689be28..209f9636405 100644 --- a/homeassistant/components/alexa_devices/sensor.py +++ b/homeassistant/components/alexa_devices/sensor.py @@ -20,7 +20,13 @@ from homeassistant.components.sensor import ( SensorEntityDescription, SensorStateClass, ) -from homeassistant.const import LIGHT_LUX, UnitOfTemperature +from homeassistant.const import ( + CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, + CONCENTRATION_PARTS_PER_MILLION, + LIGHT_LUX, + PERCENTAGE, + UnitOfTemperature, +) from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback from homeassistant.helpers.typing import StateType @@ -77,6 +83,41 @@ SENSORS: Final = ( native_unit_of_measurement=LIGHT_LUX, state_class=SensorStateClass.MEASUREMENT, ), + AmazonSensorEntityDescription( + key="Humidity", + device_class=SensorDeviceClass.HUMIDITY, + native_unit_of_measurement=PERCENTAGE, + state_class=SensorStateClass.MEASUREMENT, + ), + AmazonSensorEntityDescription( + key="PM10", + device_class=SensorDeviceClass.PM10, + native_unit_of_measurement=CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, + state_class=SensorStateClass.MEASUREMENT, + ), + AmazonSensorEntityDescription( + key="PM25", + device_class=SensorDeviceClass.PM25, + native_unit_of_measurement=CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, + state_class=SensorStateClass.MEASUREMENT, + ), + AmazonSensorEntityDescription( + key="CO", + device_class=SensorDeviceClass.CO, + native_unit_of_measurement=CONCENTRATION_PARTS_PER_MILLION, + state_class=SensorStateClass.MEASUREMENT, + ), + AmazonSensorEntityDescription( + key="VOC", + # No device class as this is an index not a concentration + state_class=SensorStateClass.MEASUREMENT, + translation_key="voc_index", + ), + AmazonSensorEntityDescription( + key="Air Quality", + device_class=SensorDeviceClass.AQI, + state_class=SensorStateClass.MEASUREMENT, + ), ) NOTIFICATIONS: Final = ( AmazonNotificationEntityDescription( diff --git a/homeassistant/components/alexa_devices/strings.json b/homeassistant/components/alexa_devices/strings.json index 16088364ba9..48868b52281 100644 --- a/homeassistant/components/alexa_devices/strings.json +++ b/homeassistant/components/alexa_devices/strings.json @@ -75,6 +75,9 @@ }, "timer": { "name": "Next timer" + }, + "voc_index": { + "name": "Volatile organic compounds index" } }, "switch": {