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?