Need help with ESP 12-E schematic

I am using ESP-12E with 8 relays what am trying to achieve is when a user clicks a button using mobile app that relevant appliance connected to specific relay should turn ON, similarly if that appliance physical (mechanical/normal daily use) switch is pressed it should turn on as well. Now as it was already ON using mobile app, turning it ON using physical switch should not do any change, However once the user tries to turn that appliance OFF using physical switch it should TURN OFF and in mobile app it should show the status that its OFF and vice versa.

I want to achieve this with 8 relays connected to ESp12E. So that i can control 8 appliance but am unable to achieve it in my PCB.

You'll need to add the schematic, actual wiring and sketch for us to be able to check it.