Closed Tokn59 closed 3 years ago
My suggestion was actually to set the baud rate to 0, which seems to do something else than setting the log level to none.
logger:
baud_rate: 0
Done .. But still :
[D][pmsx003:111]: Got PM1.0 Concentration: 4 µg/m^3, PM2.5 Concentration 6 µg/m^3, PM10.0 Concentration: 8 µg/m^3 [E][uart_esp32:147]: Reading from UART timed out at byte 0! [W][mhz19:034]: Reading data from MHZ19 failed! [D][pmsx003:111]: Got PM1.0 Concentration: 4 µg/m^3, PM2.5 Concentration 6 µg/m^3, PM10.0 Concentration: 8 µg/m^3
Does it work if you use another UART for the logger? For instance UART1 with GPIO9 and GPIO10:
logger:
hardware_uart: UART1
YEZZZZZZZ !!!! You are a genius Koen !!!!!!!! (from Belgium as well ??)
So final code for the logger :
logger: baud_rate: 0 hardware_uart: UART1
THANK YOU !!!!!!!
Operating environment/Installation (Hass.io/Docker/pip/etc.):
ESP (ESP32/ESP8266, Board/Sonoff):
M5STACK CORE **ESPHome version (latest production, beta, dev branch)** 1.16.0-dev **Affected component:**Description of problem: Trying to use 2 UART's on M5Stack, not reading any values from UART defined as GPIO01/GPIO03. Tried setting logger level to NONE as suggested.
Problem-relevant YAML-configuration entries:
PASTE DEBUG LOG HERE
[E][uart_esp32:147]: Reading from UART timed out at byte 0! [W][mhz19:034]: Reading data from MHZ19 failed! [D][pmsx003:111]: Got PM1.0 Concentration: 2 µg/m^3, PM2.5 Concentration 3 µg/m^3, PM10.0 Concentration: 3 µg/m^3 [D][sensor:092]: 'Temperature': Sending state 28.64396 °C with 2 decimals of accuracy [D][sensor:092]: 'Humidity': Sending state 40.00000 % with 2 decimals of accuracy [D][sensor:092]: 'Vapour-pressure deficit': Sending state 2.00000 kPa with 2 decimals of accuracy [D][sensor:092]: 'Dew point': Sending state 13.00000 °C with 2 decimals of accuracy [D][pmsx003:111]: Got PM1.0 Concentration: 2 µg/m^3, PM2.5 Concentration 3 µg/m^3, PM10.0 Concentration: 3 µg/m^3 [D][sensor:092]: 'Temperature': Sending state 28.65469 °C with 2 decimals of accuracy```
Additional information and things you've tried:
MHZ-19 works fine, tested.