This video demonstrates how to use Node-RED to control the logic of smart switches for two-way switching applications in an automation network. Two-way switching is commonly used to turn lights on and off at the endpoints of stairways or long hallways, normally done by interconnecting two SPDT (single pole, double throw) switches into a three-wire system.