The smart home is here to stay! Sonoff with Tasmota and Node-Red are the thing to beat. Throw in a bit of mqtt sauce and your cooking. There is a cool timer feature in the Tasmota software that default into a set state if communication is lost with the server.