From 84695a5a5f724c0af102bd1140159ab8d77ccfe6 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Fri, 31 Dec 2021 00:41:07 +0100 Subject: [PATCH] Built serverroom sensor and exchanged DHT22 with BMP280. --- esphome/serverroom.yaml | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/esphome/serverroom.yaml b/esphome/serverroom.yaml index 44d17a5..f5c5a77 100644 --- a/esphome/serverroom.yaml +++ b/esphome/serverroom.yaml @@ -2,11 +2,6 @@ esphome: name: serverroom platform: ESP32 board: nodemcu-32s - on_boot: - priority: -10 - then: - - delay: 10s - - component.update: eink wifi: ssid: "Voltage-legacy" @@ -34,15 +29,31 @@ api: ota: password: !secret ota +# Initialize I²C +i2c: + - id: bus_a + sda: 32 + scl: 25 + scan: true + # DHT22 sensor sensor: - - platform: dht - model: dht22 - pin: 22 +# - platform: dht +# model: dht22 +# pin: 22 +# temperature: +# name: "Temperatur Serverraum" +# humidity: +# name: "Luftfeuchtigkeit Serverraum" +# update_interval: 60s + - platform: bmp280 + i2c_id: bus_a temperature: - name: "Temperatur Serverraum" - humidity: - name: "Luftfeuchtigkeit Serverraum" + name: "Serveraum Temperatur" + oversampling: 16x + pressure: + name: "Luftdruck" + address: 0x76 update_interval: 60s # WiFi signal strength