From 93cd124e063de85f860de04762b0492087185e52 Mon Sep 17 00:00:00 2001 From: polyfloyd Date: Sun, 19 May 2024 14:09:29 +0200 Subject: [PATCH] Add plafond-co2 --- plafond-co2.yaml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 plafond-co2.yaml diff --git a/plafond-co2.yaml b/plafond-co2.yaml new file mode 100644 index 0000000..f2d4ec4 --- /dev/null +++ b/plafond-co2.yaml @@ -0,0 +1,50 @@ +esphome: + name: plafond-co2 + +esp32: + board: esp32thing + framework: + type: arduino + +wifi: + ssid: !secret wifi_ssid + password: !secret wifi_password + +ota: + safe_mode: true + password: !secret ota_password + +logger: + +mqtt: + broker: mqtt.local + discovery: false + +uart: + id: uart_mhz19 + rx_pin: 22 + tx_pin: 21 + baud_rate: 9600 + +text_sensor: + - platform: version + name: "ESPHome Version" + hide_timestamp: true + state_topic: bitlair/esphome/plafond-co2/version + +sensor: + - platform: wifi_signal + name: "WiFi Signal dB" + update_interval: 10s + state_topic: bitlair/esphome/plafond-co2/wifi_signal + retain: false + + - platform: mhz19 + uart_id: uart_mhz19 + co2: + name: "MH-Z19 CO2 Value" + id: co2 + state_topic: bitlair/climate/plafond/co2_ppm + retain: false + update_interval: 10s + automatic_baseline_calibration: false