How weird, things are getting useful. This project is all about integrating powerful components of others and Node-RED is a good example of such a component:
The flow above shows a Node-RED flow. "Front leds" and "Front light" are lights near the front door and "lights" are living room lights. This flow makes sure that lights in the house and near the front door are on in the evening. After dusk, if the front door motion sensor senses, well, motion, the LED lighting near the front door is switched on for 3 minutes after the last motion was seen. The other front door light does not react to motion: the bulb if of the fluorescent energy-saving type and I don't want to switch it on- and off too often.
All of this is controlled with two spider devices (one is actually a breadboarded prototype). Each of the spiders still uses an esp8266 to communicate. This is about to change. The next stop in this project is to bridge mqtt across nrf24l01+ connections. The goal: a minimum-cost minimum power wireless pir motion sensor.