One Esp32 for 2 sensors?

Home Assistant automation projects, questions, etc. go here.
Post Reply
jeffcourtneydba
LED-Curious
LED-Curious
Reactions:
Posts: 20
Joined: Mon Jan 18, 2021 11:29 pm

Noob question... I got a esp32 and I flashed it with esphome to run a ruuvi tag.

I now also want to run a MH-Z19 sensor to monitor Co2. Can I add the MH-Z19 code from the esphome helper code site to the same esp32 and run both the MH-Z19 and ruuvi on it? or do I need 2 separate esp32's?

Thanks,
Jeff
stud
LED Lover
LED Lover
Reactions:
Posts: 143
Joined: Wed Jun 03, 2020 4:19 pm
Location: Canada

yes its possible
jhagdorn
LED-Curious
LED-Curious
Reactions:
Posts: 7
Joined: Sat Aug 07, 2021 7:46 pm

You should be able to run 2 of the same type of sensor. Look into: uart_id (Optional, ID): Manually specify the ID of the UART Component if you want to use multiple UART buses.

https://esphome.io/components/sensor/mhz19.html

j
Post Reply