diff --git a/README.md b/README.md index 181a463..82478eb 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,8 @@ At the moment following sensor data can be read: - PMS_P2 - HECA_temperature - HECA_humidity +- HPM_P1 +- HPM_P2 Sensor type `signal` gives the wifi signal strength of the sensor device. diff --git a/custom_components/local_luftdaten/manifest.json b/custom_components/local_luftdaten/manifest.json index 5f358c7..4d85ee2 100644 --- a/custom_components/local_luftdaten/manifest.json +++ b/custom_components/local_luftdaten/manifest.json @@ -6,5 +6,5 @@ "dependencies": [], "codeowners": ["@lichtteil"], "requirements": [], - "version": "1.8" + "version": "1.9" } diff --git a/custom_components/local_luftdaten/sensor.py b/custom_components/local_luftdaten/sensor.py index 2f3382c..08ca1eb 100644 --- a/custom_components/local_luftdaten/sensor.py +++ b/custom_components/local_luftdaten/sensor.py @@ -58,6 +58,8 @@ SENSOR_PMS_P2 = 'PMS_P2' SENSOR_HECA_TEMPERATURE = 'HECA_temperature' SENSOR_HECA_HUMIDITY = 'HECA_humidity' +SENSOR_HPM_P1 = 'HPM_P1' +SENSOR_HPM_P2 = 'HPM_P2' SENSOR_TYPES = { @@ -84,6 +86,8 @@ SENSOR_PMS_P2: ['PM2.5', VOLUME_MICROGRAMS_PER_CUBIC_METER, None], SENSOR_HECA_TEMPERATURE: ['Temperature', TEMP_CELSIUS, 'temperature'], SENSOR_HECA_HUMIDITY: ['Humidity', '%', 'humidity'], + SENSOR_HPM_P1: ['PM10', VOLUME_MICROGRAMS_PER_CUBIC_METER, None], + SENSOR_HPM_P2: ['PM2.5', VOLUME_MICROGRAMS_PER_CUBIC_METER, None], } DEFAULT_NAME = 'Luftdaten Sensor'