So I have flashed a Sonoff S20 and I can access the web ui for tasmota and click toggle and turn it on and off all day long. That part works.
I have configured the MQTT broker info as well and on the Hass.io/Mosquito Broker logs I can see the IP address of the Sonoff and it has connected to Mosquito.
1534567134: New connection from 192.168.0.171 on port 1883.
On my switch.yaml file I have added this:
- platform: mqtt
name: "Heater"
// command_topic: "cmd/heater/power" // MISTAKE
command_topic: "cmnd/heater/power"
state_topic: "stat/heater/POWER"
payload_on: "ON"
payload_off: "OFF"
qos: 1
retain: true
The Tasmota MQTT setup looks like this:
I’m toggling the button in Home Assistant which shows up but nothing happening.
This is my first setup of Mosquito and first time adding a Sonoff to Home Assistant.
Thanks in advanced.