How to operate a bulb/fan both manually (with a traditional switch) and through a mobile app (or automatically based on a sensor) using a Raspberry Pi? Can I connect all the devices
![Jual SCHNEIDER SPRING RETURN PUSH BUTTON NC NO IP67 EQUAL XALD363M - Jakarta Barat - Raspberry Pi Distributor | Tokopedia Jual SCHNEIDER SPRING RETURN PUSH BUTTON NC NO IP67 EQUAL XALD363M - Jakarta Barat - Raspberry Pi Distributor | Tokopedia](https://images.tokopedia.net/img/cache/500-square/hDjmkQ/2022/4/11/e4115740-68da-4ffd-8a66-e9cb08ffebe2.png)
Jual SCHNEIDER SPRING RETURN PUSH BUTTON NC NO IP67 EQUAL XALD363M - Jakarta Barat - Raspberry Pi Distributor | Tokopedia
![How To Use Buttons With Your Raspberry Pi (Using Python, CircuitPython, C, And C++) - Woolsey Workshop How To Use Buttons With Your Raspberry Pi (Using Python, CircuitPython, C, And C++) - Woolsey Workshop](https://i0.wp.com/www.woolseyworkshop.com/wp-content/uploads/RaspberryPi_Buttons_Graphic.png?fit=1200%2C624&ssl=1)
How To Use Buttons With Your Raspberry Pi (Using Python, CircuitPython, C, And C++) - Woolsey Workshop
![wiring - Controlling Switches from both Raspberry Pi relay & Manual [Home Automation] - Raspberry Pi Stack Exchange wiring - Controlling Switches from both Raspberry Pi relay & Manual [Home Automation] - Raspberry Pi Stack Exchange](https://i.stack.imgur.com/cjDmA.png)
wiring - Controlling Switches from both Raspberry Pi relay & Manual [Home Automation] - Raspberry Pi Stack Exchange
![Pzsmocn Collision Sensor/Micro Snap Switch/Micro Limit Switch Module Compatible with Raspberry Pi and Arduino Board. for Smart Homes, Offices, 3D Printer and Teaching Interact with Robots.: Amazon.com: Industrial & Scientific Pzsmocn Collision Sensor/Micro Snap Switch/Micro Limit Switch Module Compatible with Raspberry Pi and Arduino Board. for Smart Homes, Offices, 3D Printer and Teaching Interact with Robots.: Amazon.com: Industrial & Scientific](https://m.media-amazon.com/images/I/814vE2lpeWL._AC_UF350,350_QL80_.jpg)