I plan to automate the lights in my house controlled by a raspberry pi.
Currently I have 14 latching relays controlling the light in my house and I'll add another actor (raspberry) to them by using this relay module: https://www.amazon.de/SainSmart-16-Kan% ... elay+modul
To sense if the light is already switched on I installed latching relays with two separate loops, so one is for the light to be powered the other one will be connected to the raspberry. If the loop is closed the raspberry can identify the current state of the light.
The problem is - this will take up 14 GPIO pins for switching and another 14 GPIO pins for sensing.
I thought of buying this extension board: https://www.amazon.de/dp/B01MQDORI7/ref ... il_0?psc=1 but I'm not sure if this will actually extend the amount of GPIOs available.
Maybe someone could give me a hint on which board to use or which is the best way to achieve this.