Mhz19 read timeout

Hello,
i bought senzor mhz19. When i connect mhz19 to Rpi and reading data with python script it work. I got data. I run script on rasbian.

But when i setting mhz19 to configure for hass i got log error and dont see any data from sensor

I use: RPI3, Rasbian and on docker installed Hass.io (the last version 0.90.2)

2019-04-03 17:15:01 ERROR (SyncWorker_1) [pmsensor.co2sensor] read timeout after 2 seconds, read 0 bytes
2019-04-03 17:15:32 ERROR (SyncWorker_12) [pmsensor.co2sensor] read timeout after 2 seconds, read 0 bytes
2019-04-03 17:16:03 ERROR (SyncWorker_7) [pmsensor.co2sensor] read timeout after 2 seconds, read 0 bytes
2019-04-03 17:16:34 ERROR (SyncWorker_2) [pmsensor.co2sensor] read timeout after 2 seconds, read 0 bytes
2019-04-03 17:17:05 ERROR (SyncWorker_16) [pmsensor.co2sensor] read timeout after 2 seconds, read 0 bytes

my config:

  • platform: mhz19
    serial_device: ‘/dev/ttyS0’
    name: ‘My MHZ19’
    monitored_conditions:
    • co2
    • temperature

Any idea?

Thanks

Hello,

Did you manage to get solve the problem? Thanks

hello, thank you for your interest.

but I couldn’t solve it. but in the meantime i upgraded from RPi 3 to RPI4. And there were also a lot of HA updates. so I don’t know if it works now. I’m not using it at the moment.

I can try a new implementation in the current environment and let you know. I just don’t have much time so please be patient

It works. Just folllow the guide. Thanks

How are you connected? do you use GPIO pins to RPI4 / RPI3 or do you use a USB UART converter?

Thank you for your response

I enabled uart on hass io, then connected the senzor to pi 4.

I’m having the exact same problem. A couple of upgrades back my MHZ19 suddenly stopped working (read timeout as above). Checked the cables, and the sensor responds from the command line. Used to run in in a pyenv (Hassbian) but recently upgraded hass.io ( Home Assistant 2021.2.3, 5.4.83-v7, 32 bit) with the same result. Have enableuart=1 in my config.txt and the /dev/serial0 I have previously used shows up as expected. But to no avail, hass.io still is unable to present any values and my log is filled with:

2021-02-18 11:06:31 ERROR (SyncWorker_15) [pmsensor.co2sensor] read timeout after 2 seconds, read 0 bytes