Gpio binding

hello i’m new to home assistant .but i installed hassio in my raspberry pi .i didn’t quite understand the configuration.yaml file .my aim is to connect a normal switch to raspberry pi gpio pin and to connect a relay to another gpio pin .i also need to change the status of the switch in the web interface or app when the switch is pressed.
could you please anyone help me…