Skip to content

Commit

Permalink
Add support for Honeywell particulate matter sensor (HPM) (#28)
Browse files Browse the repository at this point in the history
* Add support for Honeywell sensor (HPM)
* Bump version to 1.9
  • Loading branch information
lichtteil authored Apr 1, 2021
1 parent d33fa00 commit 255b18b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion custom_components/local_luftdaten/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"dependencies": [],
"codeowners": ["@lichtteil"],
"requirements": [],
"version": "1.8"
"version": "1.9"
}
4 changes: 4 additions & 0 deletions custom_components/local_luftdaten/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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'
Expand Down

0 comments on commit 255b18b

Please sign in to comment.