From b7c7eda45d75926877526eb6e983b13baaac0f8f Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 1 Mar 2017 06:32:53 +0200 Subject: [PATCH] Add temperature support to MH-Z19 (#2148) --- source/_components/sensor.mhz19.markdown | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/source/_components/sensor.mhz19.markdown b/source/_components/sensor.mhz19.markdown index 1d3d8491fe1..0339694f24c 100644 --- a/source/_components/sensor.mhz19.markdown +++ b/source/_components/sensor.mhz19.markdown @@ -12,7 +12,7 @@ ha_category: Sensor ha_release: 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. +The MH-Z19 is a small nondispersive infrared sensor that can measure CO2 level. 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](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. @@ -26,4 +26,17 @@ sensor: - **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. - +- **monitored_conditions** (*Optional*, starting from version 0.40): Conditions to monitor. Supported conditions: + - **co2** (*default*) + - **temperature** + +Full example: +```yaml +sensor: + - platform: mhz19 + serial_device: /dev/tty.SLAB_USBtoUART + name: My MHZ19 + monitored_conditions: + - co2 + - temperature +```