toto / homebridge-airrohr

HomeBridge module for the DIY luftdaten.info particulates sensor. See http://luftdaten.info how to build your own
http://luftdaten.info
MIT License
52 stars 12 forks source link

Read pressure data from the BME280 sensor #13

Closed arouanet closed 6 years ago

arouanet commented 6 years ago

Hi Thomas,

Thanks for your work on the Homebridge plugin for the Luftdaten sensor!

The following PR add support for reading pressure data from the BME280 sensor using a custom characteristic so that it can be displayed in the Eve app. This has no impact on the Home app, and the air pressure characteristic only shows in the Eve app when pressure data is available.

Note that the air pressure characteristic was added as an optional characteristic to the temperature sensor service. The homebridge-bme280 plugin did something similar. Elagato devices supposedly provide a custom air pressure service (see comments near the bottom of this page), but I couldn't get it to show in the Eve app.

This should hopefully fix issue #10. Let me know if you have any questions.

Here is a screenshot of the Eve app showing air pressure data:

img_2541