Sorry for resurrecting an old post. I'm facing the same problem. I use zigbee lamps and use the relay input to control lights. Wall switch only makes an input in HA. I would like that if shellys lose wifi connection, they fallback to controlling the lamps like if the wall switches are controlling the relays. It would be nice if this was a feature in the firmware.