Skip to content

Commit

Permalink
Update sensor.mhz19.markdown to reflect new version of sensor and HAS…
Browse files Browse the repository at this point in the history
…S.IO specifics (#8929)

* Update sensor.mhz19.markdown

* Fix layout
  • Loading branch information
basveeling authored and fabaff committed Mar 14, 2019
1 parent e4b3217 commit d44940a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions source/_components/sensor.mhz19.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ The MH-Z19 is a small non-dispersive infrared sensor that can measure CO2 level.

Check out the [Open Home Automation web site](https://www.open-homeautomation.com/2016/08/24/monitor-co2-levels-in-your-house/) for a quick guide how to connect the sensor to your PC or Raspberry Pi.

**Note:** the new version MH-Z19B requires the VIN to be connected to a 5V pin, rather than 3.3V.

## {% linkable_title Configuration %}

To use this sensor in your installation, add the following to your `configuration.yaml` file:
Expand Down Expand Up @@ -44,3 +46,21 @@ sensor:
- co2
- temperature
```

## {% linkable_title Raspberry Pi 3(+) GPIO UART and Hass.io %}

To directly connect the sensor on the GPIO pins of a RPi, first append the following to `config.txt` in the boot directory:

```text
enable_uart=1
```

Then (after a reboot): you can setup the sensor using:

```yaml
serial_device: /dev/tty.S0
```

## {% linkable_title Calibration %}

The MH-Z19B version of the sensor has Automatic Baseline Calibration enabled by default, which will calibrate the 400PPM level to the lowest measured PPM in the last 24h cycle. Currently the component does not allow turning this functionaly off.

0 comments on commit d44940a

Please sign in to comment.