From aec04ebc089f038abb3f6f60e14df0b7a92dbcc4 Mon Sep 17 00:00:00 2001 From: smash Date: Mon, 7 Sep 2020 16:26:06 +0200 Subject: [PATCH] corrected rx/tx for mhz19, changed interval for display and sensor to 10s, turned on ABC for mhz19 --- .gitignore | 1 + co2sensor.yaml | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 26c6929..c94fcf9 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ **/platformio.ini /secrets.yaml /co2_sensor/ +/co2ampel/ diff --git a/co2sensor.yaml b/co2sensor.yaml index 5908446..9e4d8b0 100644 --- a/co2sensor.yaml +++ b/co2sensor.yaml @@ -1,5 +1,5 @@ esphome: - name: co2_sensor + name: co2_sensor_lab platform: ESP32 board: esp32doit-devkit-v1 on_boot: @@ -21,8 +21,8 @@ mqtt: payload: offline uart: - rx_pin: GPIO17 - tx_pin: GPIO16 + rx_pin: GPIO16 + tx_pin: GPIO17 baud_rate: 9600 id: uart_mhz19 @@ -41,8 +41,8 @@ output: sensor: - platform: mhz19 - update_interval: 30s - automatic_baseline_calibration: false + update_interval: 10s + automatic_baseline_calibration: true uart_id: uart_mhz19 temperature: name: "MH-Z19 Temperature" @@ -116,7 +116,7 @@ display: model: "SSD1306 128x64" address: 0x3C brightness: 100% - update_interval: 30s + update_interval: 10s pages: - id: boot lambda: |-