home-assistant.github.io/source/_components/sensor.mhz19.markdown
ThinkPadNL 6826408566 Update sensor.mhz19.markdown
CO2 level outside isn't 250 - 350pmm, but assumed to be 400ppm. It has risen over the years, due to global warming :-(
Most sensors that do automatic calibration assume 400ppm as lowest.

See also https://www.co2.earth/ for actual CO2 level on the earth.
2016-08-28 12:41:24 +02:00

1.2 KiB

layout title description date sidebar comments sharing footer ha_category ha_release
page MH-Z19 CO2 Sensor Instructions on how to integrate the MH-Z19 CO2 sensor with Home Assistant. 2016-08-24 00:00 true false true true sensor 0.27

The MH-Z19 is a small nondispersive infrared sensor that can measure CO2 sensors. High CO2 levels can lead to drowsiness, poor concentration, loss of attention or increased heart rate. The CO2 level outside is around 400ppm, but inside levels can reach between 1000 and 5000 ppm. High CO2 levels indicate that you should increase ventilation.

Check out the Open Home Automation web site for a quick guide how to connect the sensor to your PC or Raspberry Pi.

To use this sensor in your installation, add the following to your configuration.yaml file:

sensor:
  - platform: mhz19
    serial_device: /dev/tty.SLAB_USBtoUART
    name: CO2
  • serial_device (Required): The serial port to use. On *nix systems, it can often be identified by $ ls /dev/tty*
  • name (Optional): The name displayed in the frontend.