Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dmptrluke/esphome_hp303b

An ESPHome component for the HP303B barometric pressure sensor.
https://github.com/dmptrluke/esphome_hp303b

Last synced: 19 days ago
JSON representation

An ESPHome component for the HP303B barometric pressure sensor.

Awesome Lists containing this project

README

        

# esphome_hp303b
An ESPHome custom sensor component for the HP303B barometric pressure sensor.

An example of how to use this file is below:

```yaml
esphome:
name: barometric_pressure_sample
platform: ESP8266
board: d1_mini
libraries:
- "wemos/LOLIN_HP303B_Library" # lib from github
- "SPI" # lib from platformio
includes:
- hp303b.h


sensor:
- platform: custom
lambda: |-
auto hp_sensor = new HP303BSensor();
App.register_component(hp_sensor);
return {hp_sensor};

sensors:
name: "Barometric Pressure"
icon: "mdi:gauge"
unit_of_measurement: hPa
accuracy_decimals: 1
```