From 5e202386f0b3935fad8f8baa5964137e554dd03f Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Fri, 25 Feb 2022 10:08:58 +0100 Subject: [PATCH] Remove deprecated MH-Z19 CO2 Sensor integration (#21785) --- source/_integrations/mhz19.markdown | 70 ----------------------------- source/_redirects | 5 ++- 2 files changed, 3 insertions(+), 72 deletions(-) delete mode 100644 source/_integrations/mhz19.markdown diff --git a/source/_integrations/mhz19.markdown b/source/_integrations/mhz19.markdown deleted file mode 100644 index 2a6b92e0aaf..00000000000 --- a/source/_integrations/mhz19.markdown +++ /dev/null @@ -1,70 +0,0 @@ ---- -title: MH-Z19 CO2 Sensor -description: Instructions on how to integrate the MH-Z19 CO2 sensor with Home Assistant. -ha_category: - - DIY -ha_release: 0.27 -ha_iot_class: Local Polling -ha_domain: mhz19 -ha_platforms: - - sensor ---- - -
- -This integration is deprecated and will be removed in Home Assistant Core 2022.4. - -For more information see: [Architectural Decision Record 0019](https://github.com/home-assistant/architecture/blob/master/adr/0019-GPIO.md). - -
- -The MH-Z19 is a small non-dispersive 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. - -**Note:** the new version MH-Z19B requires the VIN to be connected to a 5V pin, rather than 3.3V. - -## Configuration - -To use this sensor in your installation, add the following to your `configuration.yaml` file: - -```yaml -# Example configuration.yaml entry -sensor: - - platform: mhz19 - serial_device: /dev/tty.SLAB_USBtoUART -``` - -- **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 -``` - -## Raspberry Pi GPIO UART and the Home Assistant Operating System - -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/ttyS0 -``` - -## 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 integration does not allow turning this functionality off. diff --git a/source/_redirects b/source/_redirects index 3b7e432202b..ca51fdb4d15 100644 --- a/source/_redirects +++ b/source/_redirects @@ -753,7 +753,6 @@ /components/sensor.magicseaweed /integrations/magicseaweed /components/sensor.meteo_france /integrations/meteo_france /components/sensor.mfi /integrations/mfi#sensor -/components/sensor.mhz19 /integrations/mhz19 /components/sensor.miflora /integrations/miflora /components/sensor.min_max /integrations/min_max /components/sensor.mitemp_bt /integrations/mitemp_bt @@ -1515,7 +1514,6 @@ /components/meteoalarm /integrations/meteoalarm /components/metoffice /integrations/metoffice /components/mfi /integrations/mfi -/components/mhz19 /integrations/mhz19 /components/microsoft /integrations/microsoft /components/microsoft_face /integrations/microsoft_face /components/microsoft_face_detect /integrations/microsoft_face_detect @@ -2361,6 +2359,9 @@ /integrations/blinkt /more-info/removed-integration 301 /components/tof /more-info/removed-integration 301 /integrations/tof /more-info/removed-integration 301 +/components/mhz19 /more-info/removed-integration 301 +/components/sensor.mhz19 /more-info/removed-integration 301 +/integrations/mhz19 /more-info/removed-integration 301 /components/bme280 /more-info/removed-integration 301 /components/sensor.bme280 /more-info/removed-integration 301 /integrations/bme280 /more-info/removed-integration 301