diff --git a/esphome/livingroom.yaml b/esphome/livingroom.yaml index 60d7fbf..8baa527 100644 --- a/esphome/livingroom.yaml +++ b/esphome/livingroom.yaml @@ -115,7 +115,9 @@ light: # Initialize UART for Vindriktning sensor uart: + id: uartPM rx_pin: GPIO22 + tx_pin: GPIO23 baud_rate: 9600 # Create text sensor to represent CO2 LED warn state (somewhat redundant) diff --git a/esphome/sleepingroom.yaml b/esphome/sleepingroom.yaml index 010197c..fbf0996 100644 --- a/esphome/sleepingroom.yaml +++ b/esphome/sleepingroom.yaml @@ -114,7 +114,9 @@ light: # Initialize UART for Vindriktning sensor uart: + id: uartPM rx_pin: GPIO26 + tx_pin: GPIO27 baud_rate: 9600 # Create text sensor to represent CO2 LED warn state (somewhat redundant) @@ -212,6 +214,7 @@ sensor: update_interval: 60s # Vindriktning particulate matter sensor - platform: pm1006 + uart_id: uartPM pm_2_5: name: "Feinstaub PM 2.5µm" on_value_range: