Alright this is my first time playing with HA so this is a real newbie question but i cant seem to find it anywhere on this forum. I was wondering if it was possible to add different sensor to the same ESP32? I’m thinking of putting a DHT sensor with a 4 channel relay sensor on it but i dont know how. I’m thinking this is pretty self forward. So do i just go like this?
# This is just some code found on the ESPHome webpage
sensor:
- platform: dht
pin: D2
temperature:
name: "Living Room Temperature"
humidity:
name: "Living Room Humidity"
update_interval: 60s
switch:
- platform: gpio
name: "Relay"
pin: <PIN_RELAY_IS_CONNECTED_TO>
- platform: gpio
name: "Relay"
pin: <PIN_RELAY_IS_CONNECTED_TO>
- platform: gpio
name: "Relay"
pin: <PIN_RELAY_IS_CONNECTED_TO>
- platform: gpio
name: "Relay"
pin: <PIN_RELAY_IS_CONNECTED_TO>
I know you can do it with arduino (I have some experience with that), so i guess this is possible but i just wanna make sure.
Thanks a lot, looking forward to your thoughts !