8 channel relay module project controlled by esp8266 connected to blynk and also their respective switches

My idea is to control 8 lights in my house through an 8-channel relay module controlled by an esp8266 mcu node and also the switches that I have in my house. The module itself would use 8 pins for the relay outputs and 8 more pins for the switches. so I investigated the node mcu module that I have has 17 GPIOs but I don’t know how to use some, since they don’t work for me. Can someone help me with this? Excuse my ignorance, I am new to this.

It’s not do-able with a NodeMCU.
Read this:

You’d either need to use a port expander like the MCP23017…

or use a board with more useable pins such as the ESP32.