Using esphome seems like a good option in your case. It integrates directly with HA and provide a lot of options, not only for i/o pins, but also for various type of esp boards, sensors and other devices. You would connect through wifi in this case. Have a look here: https://esphome.io/. I am using it for i/o since I am also using a NUC where there is no easy way of adding i/o pins.
Inputs would then show up in HA as binary sensors, and outputs as switches. Analog inputs would show up as sensors. I have not tried analog outputs myself, but there are options available also for this using esphome and suitable esp boards.
Thank you Tomas, I had forgotten about ESPHome. I was initially looking for 1-wire integration that lead me to raspberry pi and also a wired connection back to the NUC in stead of wifi but will take a look at your links. Thanks again.