Lamp can be switched with both phone/pc via home wifi as well as wall switch D5 sees the status of the lamp so it can be removed if the lamp (or something else) is going to be only toggled Code is ...