-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Added documentation for the bmp280 integration #11769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b6f18e7
Added documentation to the bmp280 integration
belidzs c0b6d2f
:pencil2: Tweak
klaasnicolaas 0a6584f
Update source/_integrations/bmp280.markdown
belidzs bb4bf7d
Change documentation due to changes in integration
belidzs 3fa1dbf
Update source/_integrations/bmp280.markdown
belidzs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| --- | ||
| title: Bosch BMP280 Environmental Sensor | ||
| description: Instructions on how to integrate a BMP280 sensor into Home Assistant. | ||
| ha_release: 0.108 | ||
| logo: raspberry-pi.png | ||
| ha_category: | ||
| - DIY | ||
| ha_iot_class: Local Polling | ||
| ha_quality_scale: silver | ||
| ha_code_owners: | ||
| - '@belidzs' | ||
| --- | ||
|
|
||
| The `bmp280` sensor platform allows you to read temperature and pressure values of a [Bosch BMP280 Environmental sensor](https://www.bosch-sensortec.com/products/environmental-sensors/pressure-sensors/pressure-sensors-bmp280-1.html) connected via [I2C](https://en.wikipedia.org/wiki/I²C) bus (SDA, SCL pins). | ||
|
|
||
| This integration has been tested on a Raspberry Pi 4B, but it should work on any device which is supported by [CircuitPython](https://circuitpython.org/). | ||
|
|
||
| ## Configuration | ||
|
|
||
| To use a BMP280 sensor in your installation, you have to enable I2C on your host device then configure the integration using the following example: | ||
|
|
||
| ```yaml | ||
| sensor: | ||
| - platform: bmp280 | ||
| - i2c_address: 0x77 | ||
| ``` | ||
|
|
||
| {% configuration %} | ||
| name: | ||
| description: The name of the sensor. | ||
| required: false | ||
| default: BMP280 | ||
| type: string | ||
| i2c_address: | ||
| description: I2C address of the sensor. It is either 0x76 or 0x77, depending on your actual wiring configuration. | ||
| required: true | ||
| type: integer | ||
| {% endconfiguration %} | ||
|
|
||
| ## Setting up the I2C interface on the host device | ||
|
|
||
| To get more information on how to set up the I2C interface on your Raspberry Pi, please refer to the [BME680 sensor integration](/integrations/bme680/#directions-for-installing-smbus-support-on-raspberry-pi). | ||
|
|
||
| ## Choosing the appropriate I2C address | ||
|
|
||
| Please note that the I2C address of this device depends on the state of the `SDO` pin. If it is pulled down (to the `GND` rail) it will be `0x76`, if it's pulled up (to the `VCC` rail) it will be `0x77`. | ||
|
|
||
| If you leave it floating then the address will be unpredictable or even worse, it can change over time. So it is recommended to hook up this pin to either the positive or the negative rail of your host device. | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.