we have design this ESP32 GPIO board (KC868-A256) for home assistant. It use by ESP32-WROOM-32E, 256CH digial input ports + 256CH MOSFET output ports + 4CH analog input ports + RS485 + Ethernet. The output design by 74HC595 chip. The input design by 74HC165 chip. You can write your own arduino source code for home automation DIY. You can also integrate to home assistant by ESPHome.