One option is to have the Arduino act as a web server, and provide a web app that can be used to read and change the required switch state. If the state is meant to apply to the Arduino, it now has the information it needs.
Another option is to have a web server somewhere else that your user connects to to read and change the required switch state, and have the Arduino acting as a web client also connect to the web server to read the current required switch state.