I installed home assistant 0.98.4 on raspberrypi 2. I configured the mqtt service in the raspberry pi and then I configured the configuration.yaml file.
It’s the config of the mqtt:
I configured shelly switch and yeelight in the same file and everthing works great. Yesterday I flashed tasmota for the sonoff pow R2 switch. I configured the mqtt service in the web interface:
I enabled the mqtt in the configure other option in the sonoff web inteface and I wrote friendly name.
Then I tried to config the sonoff in the configuration.yaml:
- platform: mqtt
I restarted the Home assistant server but nothing happened and I don’t have a switch. I saw in the console in the web interface of the sonoff switch and it connected to the wifi and to the mqtt server.
What I am doing wrong?