Sonoff Bridge - powered here through a power bank - a small device that can easily be programmed to trigger your other Sonoff devices. 16 devices can be used to trigger devices that a Sonoff relay is connected to.
In this example, I've connected the door sensor to switch on the lamp - and the PIR to switch off the lamp. Each can also send a notification if required.
www.smartkit.co.za
![](https://i.ytimg.com/vi/bZC9Qblwm3U/maxresdefault.jpg)