Thanks to both for the explanation, it's interesting. So the switches need to be kept on at all times right? In order to keep the relay on so you can control the relay from the app?
I am actually currently using wireless kinetic switches now, with wireless modules connected to each light circuits
The dumb switch does not need to be kept on all the time. In fact, the dumb switch and relays work independently of each other, but with the status of the relay (on or off) will update and sync in the app regardless you control it from app or from physical dumb switch.
In essence wiring wise , the dumb switch and the relay are kind of like connected in parallel to one another. The power to the relay does not directly come from the dumb switch, but directly from mains. Flipping the dumb switch just toggles the state of the relay(ie on or off) , but not cutting off the power to the relay.
And like what
@xxnewbiexx mentioned, you can understand the relay and dumb switch behaving like a 2-way switch.
An extension to this, for Shelly relays, it's possible to decouple the function of the dumb physical switch action.
Particularly for my case, I set one of my relays to be permanently on from the app. And I set the action of flipping the dumb switch to be controlling a ceiling light/fan.
This is so I can set an automation such as if I flip on the switch before 6pm, to only on the fan. If I switch on the switch after 6pm to switch on both light and fan. Switching the switch off will off both light and fan.
All these flipping actions of the physical switch will not affect power to the relay nor the state (on or off) of the relay as I havd them configured to be decoupled. In app, I just need to display the controls of the fan/light device.
I find such decoupling feature useful as I have more customizability, especially if using smart relay(or switch) and smart light at the same time.
But of coz, it also works in a similar way if using a wireless scene switch mounted over the relay on the switch box.