yes. mine are martin jerry switches running tasmota and the button drives the relay directly, so with wifi down it's just a normal light switch. wifi only adds the remote control. you'd swap the switch itself, the wiring stays.