Hello again!
I just want to share that connecting the mentioned relay card with HA worked like a charm and I didn’t expect it to be that easy!
Maybe for others who are in the same situation, here’s what I did:
- I used the 8 chan relay card with integrated ESP32 WROOM chip
- I used a CH340G UART to TTL USB adapter
- I soldered the 6-pin header to the board
- I connected the card withe adapter as follows:
RX to TX
TX to RX
GND to GND - I connected 00I and GND with a jumper
- I powered the card with 12V (this specific card can handle 7-30V. Be careful what your card can handle)
- I connected the USB adapter to my HA-computer (a NUC in this case)
- I set up ESPHome in HA
- I opended ESPHome, added a new device and followed the installation steps. Very intuitive. But on youtube there’s a ton of videos explaining how to add a ESP32 to ESPhome
- Power off, power on, done!
And from here you can basically go into the programming of the card.
Visit this thread for more information about the pinout of the card and the code to control the relays:
Hope this helps someone