Configure SONOFF T1 with Pi4

I have just bought a Sonoff T1 swich for EU. How can I configure in hassio? Do I need any extra component?

Once I have fit in the wall and connected to wireless, which are the step that I should add in configuration file?

I have activated MQTT in hassio.
Is that enough that I add this code:

light:
  - platform: mqtt
    name: "MasterBedroom"
    state_topic: "stat/sonoffMB/POWER"
    command_topic: "cmnd/sonoffMB/POWER"
    availability_topic: "tele/sonoffMB/LWT"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"
    payload_available: "Online"
    payload_not_available: "Offline"
    retain: false

Where should I add the ip address of the switch?

You’ll need to flash some firmware on the T1. I suggest tasmota.

Since I have to use MQTT, do I have to add something in configuration.yaml file for MQTT?

I just activated in the “Hass.io --> add-on details”

Do I have to add something else?