I’m very new to using arduino, and I’ve only just started tinkering with ESPhome. I’m looking to use a NodeMCU running ESPHome to control the many things I have on my desk like monitor, audio, lights, etc.
So if I may just get to my question, how many relays could I control using one NodeMCU ESP8266 board? I count a total of 9 “D” pins (from D0-D8), so is it correct for me to assume that I can control up to 9 relays?
Also, on the ESPhome website I read that you can use A0 as an output pin, so does that mean I could also use it to control a relay for a total of 10 relays on a single NodeMCU board?
Thanks everyone for the suggestions! Since I’m planning to control relays and the NodeMCU practically only has GPIO4 and GPIO5 to control relays with, I’m going to be using I2C GPIO expanders like the PCF857x or MCP230xx.