Skip to content

BME680 sensor component documentation#4432

Merged
frenck merged 3 commits into
home-assistant:nextfrom
arcsur:bme680
Jan 23, 2018
Merged

BME680 sensor component documentation#4432
frenck merged 3 commits into
home-assistant:nextfrom
arcsur:bme680

Conversation

@arcsur
Copy link
Copy Markdown
Contributor

@arcsur arcsur commented Jan 16, 2018

Description:

Pull request in home-assistant (if applicable): home-assistant/core#11695

Checklist:

  • Branch: Fixes, changes and adjustments should be created against current. New documentation for platforms/components and features should go to next.
  • The documentation follow the standards.

@frenck frenck added the new-integration This PR adds documentation for a new Home Assistant integration label Jan 16, 2018
Copy link
Copy Markdown
Member

@frenck frenck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arcsur I've reviewed the document, could you please take a look at the requested changes? 👍

comments: false
sharing: true
footer: true
logo: raspberry-pi.png
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually a sensor by Bosch right? Why show the Raspberry PI logo?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used the same logo as was used for the BME280 sensor which this is closely related to. It is a directly connected I2C sensor typically used on platforms such as the raspberry pi as it needs a GPIO connection. I am open to any suggestions as to what to change it to but again, I was simply mirroring the existing BME280 component's logo in the existing documentation for consistency.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've approved the changes. Nevertheless, maybe the logo should be the Bosch logo? Since that is the brand/manufacturer?

Not sure myself either, I'm just bringing it up.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think for consistency with the BME280, we should keep it as the RPi logo for now. However if anyone wanted to propose a general change later to all these RPi library based sensors, I would not have objections.

The other thing is I have no idea on the requirements to use Bosch's logo and if they would have any objections or possible legal concerns for doing so.

- platform: bme680
```

Configuration variables:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use the configuration tags, for more information please see:
https://home-assistant.io/developers/documentation/create_page/#configuration

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implemented

---


The `bme680` sensor platform allows you to read temperature, humidity, pressure and gas resistance values of a [Bosch BME680 Environmental sensor](https://cdn-shop.adafruit.com/product-files/3660/BME680.pdf) connected via [I2c](https://en.wikipedia.org/wiki/I²C) bus (SDA, SCL pins). It allows you to use all the operation modes of the sensor described in its datasheet. In addition, it includes a basic air quality calculation that uses gas resistance and humidity measurements to calculate a percentage based air quality measurement.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Missing comma: humidity, pressure and gas -> humidity, pressure, and gas
  • I2c -> I2C

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't believe there should be a comma in front of the and in any form of English. (I am British so I may be missing an American English thing here but some quick Googling shows this to be incorrect.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok so some more googling later and this is what seems to be referred to as the "Oxford Comma".
Your documentation standards (https://home-assistant.io/developers/documentation/standards/) specifically states to avoid the Oxford comma:
"Don’t put two spaces after a period and avoid the “Oxford comma”.

- **oversampling_pressure** (*Optional*): Oversampling multiplier as described in the sensor datasheet. Can be 0 (no sampling), 1, 2, 4, 8, or 16. Default is 2.
- **oversampling_humidity** (*Optional*): Oversampling multiplier as described in the sensor datasheet. Can be 0 (no sampling), 1, 2, 4, 8, or 16. Default is 4.
- **filter_size** (*Optional*): IIR filter size as described in the sensor datasheet. Can be 0 (off), 1, 3, 7, 15, 31, 63 or 127. Default is 3.
- **gas_heater_temperature** (*Optional*): The temperature to heat the hotplate to for gas resistance measurements as descibed in the sensor datasheet. Can be between 200-400°C. Default is 320°C.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • descibed -> described

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

- **oversampling_humidity** (*Optional*): Oversampling multiplier as described in the sensor datasheet. Can be 0 (no sampling), 1, 2, 4, 8, or 16. Default is 4.
- **filter_size** (*Optional*): IIR filter size as described in the sensor datasheet. Can be 0 (off), 1, 3, 7, 15, 31, 63 or 127. Default is 3.
- **gas_heater_temperature** (*Optional*): The temperature to heat the hotplate to for gas resistance measurements as descibed in the sensor datasheet. Can be between 200-400°C. Default is 320°C.
- **gas_heater_duration** (*Optional*): The duration to heat the hotplate in milliseconds for gas resistance measurements as descibed in the sensor datasheet. Can be between 1-4032 ms. In reality you will likely need between 80-100ms to reach a stable temperature. Using a duration greater than 1000ms is unadvisable as it will essentially result in the heater being continually on due to the 1 second update interval. Default is 150 ms.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • descibed -> described
  • Missing comma: In reality you -> In reality, you
  • unadvisable -> inadvisable
  • 1 second -> 1-second

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed


- **name** (*Optional*): The name of the sensor
- **i2c_bus** (*Optional*): I2c bus where the sensor is. Defaults to 1, for Raspberry Pi 2, 3 Zero and Zero-W.
- **i2c_address** (*Optional*): I2c address of the sensor. It is 0x76 or 0x77. Default 0x77.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • I2c -> I2C

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed for both i2c_bus and i2c_address lines.


## {% linkable_title Full Examples %}

If you want to specify the working mode of the digital sensor or need to change the default I2c address (which is 0x77), add more details to the `configuration.yaml` file:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • I2c -> I2C

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed


## {% linkable_title Directions for installing smbus support on Raspberry Pi %}

Enable I2c interface with the Raspberry Pi configuration utility:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • I2c -> I2C

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

$ sudo reboot
```

### {% linkable_title Check the i2c address of the sensor %}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • i2c -> I2C

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

70: -- -- -- -- -- -- -- 76
```

So you can see the sensor address that you are looking for is **0x76** (there is another i2c device on that Raspberry Pi).
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • i2c -> I2C

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@arcsur
Copy link
Copy Markdown
Contributor Author

arcsur commented Jan 19, 2018

@frenck I have made the changes requested with the exception of the "Oxford Comma" change as that is against the documentation standards and the logo change. Please see the comments against both of these items for more information and let me know if more changes are required.

@arcsur arcsur changed the title Bme680 BME680 sensor platform documentation Jan 19, 2018
@arcsur arcsur changed the title BME680 sensor platform documentation BME680 sensor component documentation Jan 19, 2018
@frenck frenck self-assigned this Jan 19, 2018
@frenck
Copy link
Copy Markdown
Member

frenck commented Jan 19, 2018

@arcsur I'm not starting a discussion on the Oxford comma, there are enough discussions on it already (virtually everywhere) ;)

@frenck frenck removed their assignment Jan 19, 2018
@frenck
Copy link
Copy Markdown
Member

frenck commented Jan 23, 2018

Parent PR got merged. Merging this one in as well.

@frenck frenck closed this Jan 23, 2018
@frenck frenck reopened this Jan 23, 2018
@frenck frenck merged commit 65b8334 into home-assistant:next Jan 23, 2018
@arcsur arcsur deleted the bme680 branch January 24, 2018 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-integration This PR adds documentation for a new Home Assistant integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants